AfoliOpen Afoli →

Petrol color #005F6A

Petrol is a color name from the xkcd color survey for the hex code #005F6A — RGB 0, 95, 106, HSL 186°, 100%, 21%.

Open in Afoli Colour tools →

#005F6APetrol

Color codes

HEX
#005F6A
RGB
rgb(0, 95, 106)
HSL
hsl(186, 100%, 21%)
CMYK
100%, 10%, 0%, 58%
OKLCH
oklch(44.4% 0.076 208.5)

Tints and shades

#E0FBFF#9DE9F5#82CEDA#68B4BF#4F9AA5#34818C#146974#00505A#003940#002227#000E11

Color harmonies

Complementary
#005F6A#78423B
Analogous
#106154#005F6A#245979
Triadic
#005F6A#6B4469#65511A
Split complementary
#005F6A#754153#734825
Tetradic
#005F6A#594A78#78423B#505925

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Petrol text on white7.38 : 185AAA — any text
Petrol text on black2.85 : 1-17Fails for text
White text on Petrol7.38 : 1-90AAA — any text
Black text on Petrol2.85 : 119Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Petrol?

Petrol has the hex code #005F6A, which is RGB 0, 95, 106 and HSL 186°, 100%, 21%.

Which text color reads best on Petrol?

White text: contrast 7.38 : 1 (black text: 2.85 : 1).

Which colors go well with Petrol?

Its complementary color is #78423B; analogous colors are #106154 and #245979; a triadic set adds #6B4469 and #65511A.

Similar colors

Sources and licences

Updated November 21, 2026