Skip to content

Petrol (#005F6A)

The hex code for Petrol is #005F6A. It is rgb(0, 95, 106) in RGB, hsl(186, 100%, 21%) in HSL, and about cmyk(100%, 10%, 0%, 58%) in CMYK — a dark teal. White text is the more readable choice on this background.

#005F6A
HEX#005F6A
RGBrgb(0, 95, 106)
HSLhsl(186, 100%, 21%)
HSVhsv(186, 100%, 42%)
CMYKcmyk(100%, 10%, 0%, 58%)
OKLCHoklch(44.4% 0.076 208.5)
LABlab(36.13% -21.54 -13.52)
LCHlch(36.13% 25.43 212.11)

Colors Closest to Petrol

Petrol is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

Browse the full index of named colors A-Z or every teal in the library.

#005F6A Channel Values

How Petrol breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 0 · G 95 · B 1068-bit channels as sent to the display
HSLH 186° · S 100% · L 21%Easiest model for building lighter and darker variants
HSVH 186° · S 100% · V 42%Matches the picker in most design tools
CMYKC 100% · M 10% · Y 0% · K 58%Approximate ink mix; confirm with an ICC profile before printing
Luminance7.38:1 vs white · 2.85:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Petrol background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text7.38:1AA normal AA large AAA normal
TextBlack text2.85:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #005F6A in the contrast checker.

Colors That Go With Petrol

Pairings derived from color-wheel relationships. The complementary color sits opposite Petrol; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of Petrol

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #005F6A.

How Petrol Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#005F6A
Protanopia#57576A
Protanomaly#435A6A
Deuteranopia#4E4E6B
Deuteranomaly#3D556B
Tritanopia#006060
Tritanomaly#006064
Achromatopsia#565656

Test a full palette in the color blindness simulator.

Using #005F6A in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--petrol: #005F6A;
CSS backgroundbackground-color: #005F6A;
Tailwind configcolors: { 'petrol': '#005F6A' }
SwiftUIColor(red: 0.000, green: 0.373, blue: 0.416)
Android XML<color name="petrol">#005F6A</color>
SVG fillfill="#005F6A"

More Teal Colors

Petrol sits in the tealfamily. These are its neighbours across that family's full range, each with its own breakdown.

#005F6A Frequently Asked Questions

What is the hex code for Petrol?

The hex code for Petrol is #005F6A. That is rgb(0, 95, 106) in RGB, hsl(186, 100%, 21%) in HSL, and approximately cmyk(100%, 10%, 0%, 58%) in CMYK.

What is the RGB value of #005F6A?

#005F6A is rgb(0, 95, 106) — red 0, green 95, and blue 106 on the 0-255 scale.

What is the CMYK value of #005F6A?

#005F6A converts to approximately cmyk(100%, 10%, 0%, 58%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #005F6A be black or white?

White text is the more readable choice. #005F6A scores 7.38:1 against white and 2.85:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #005F6A as a CSS color keyword?

No. #005F6A is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is darkslategray (#2F4F4F) at a CIE76 distance of 14.24, which is visibly different.

Open Petrol in a Tool

Keep exploring: every teal in the color library, the guide to shades of teal, or the full color library.