#5F5012#5F5012

#5F5012 is a dark, moderate yellow. Relative luminance 0.082; OKLCH L 43.4% C 0.080 H 94.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5F5012
RGBrgb(95, 80, 18)
HSLhsl(48, 68%, 22%)
HSVhsv(48, 81%, 37%)
CMYKcmyk(0%, 15.8%, 81.1%, 62.7%)
CIE-LABlab(34.43, -1.02, 36.45)
CIE-LCHlch(34.43, 36.46, 91.61°)
OKLaboklab(43.44% -0.0067 0.0799)
OKLCHoklch(43.44% 0.08 94.8)
XYZxyz(7.6976, 8.2143, 1.7522)
Luminance0.0821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5012 #12215F
analogous
#5F2A12 #5F5012 #485F12
triadic
#5F5012 #125F50 #50125F
tetradic
#5F5012 #125F2A #12215F #5F1248
square
#5F5012 #125F2A #12215F #5F1248
split-complementary
#5F5012 #12485F #2A125F
monochromatic
#1A1605 #2C2508 #5F5012 #927B1C #C6A725

Accessibility & contrast

On white

7.95
#5F5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5012
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5012#FFFFFF#000000##FFFFFF
##5F50121.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#5D5316
Tritanopia (blue-blind)
#674944
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f5012;
/* rgb */ color: rgb(95, 80, 18);
/* oklch */ color: oklch(43.4% 0.080 94.8);
Tailwind
colors: {
  custom: {
    50: '#908055',
    500: '#5f5012',
    950: '#000000',
  },
}
SCSS
$custom: #5f5012;
$custom-light: #908055;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5012",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 48.312,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43439,
    "c": 0.08021,
    "h": 94.8
  },
  "luminance": 0.08214
}

Semantic roles & 50–950 ramp

primary
#5F5012
secondary
#364997
accent
#5FEB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5012

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F5012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva