#5F5212#5F5212

#5F5212 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 43.9% C 0.082 H 97.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5F5212
RGBrgb(95, 82, 18)
HSLhsl(50, 68%, 22%)
HSVhsv(50, 81%, 37%)
CMYKcmyk(0%, 13.7%, 81.1%, 62.7%)
CIE-LABlab(35.03, -2.23, 37.01)
CIE-LCHlch(35.03, 37.08, 93.45°)
OKLaboklab(43.92% -0.0101 0.0811)
OKLCHoklch(43.92% 0.082 97.1)
XYZxyz(7.8462, 8.5116, 1.8018)
Luminance0.0851 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5212 #121F5F
analogous
#5F2C12 #5F5212 #465F12
triadic
#5F5212 #125F52 #52125F
tetradic
#5F5212 #125F2C #121F5F #5F1246
square
#5F5212 #125F2C #121F5F #5F1246
split-complementary
#5F5212 #12465F #2C125F
monochromatic
#1A1605 #2C2608 #5F5212 #927E1C #C6AB25

Accessibility & contrast

On white

7.77
#5F5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5212
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5212#FFFFFF#000000##FFFFFF
##5F52121.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5006
Deuteranopia (green-blind)
#5F5416
Tritanopia (blue-blind)
#674B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f5212;
/* rgb */ color: rgb(95, 82, 18);
/* oklch */ color: oklch(43.9% 0.082 97.1);
Tailwind
colors: {
  custom: {
    50: '#8f8255',
    500: '#5f5212',
    950: '#000000',
  },
}
SCSS
$custom: #5f5212;
$custom-light: #8f8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5212",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 49.87,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43915,
    "c": 0.08177,
    "h": 97.1
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

primary
#5F5212
secondary
#364697
accent
#5AEB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5212

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

Preview Lab → · Contrast checker → · Palette generator →

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