#5F571B#5F571B

#5F571B is a mid, moderate yellow. Relative luminance 0.093; OKLCH L 45.2% C 0.080 H 101.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5F571B
RGBrgb(95, 87, 27)
HSLhsl(53, 56%, 24%)
HSVhsv(53, 72%, 37%)
CMYKcmyk(0%, 8.4%, 71.6%, 62.7%)
CIE-LABlab(36.61, -4.71, 34.64)
CIE-LCHlch(36.61, 34.96, 97.74°)
OKLaboklab(45.19% -0.0161 0.078)
OKLCHoklch(45.19% 0.08 101.7)
XYZxyz(8.3257, 9.3288, 2.3988)
Luminance0.0933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F571B #1B235F
analogous
#5F351B #5F571B #455F1B
triadic
#5F571B #1B5F57 #571B5F
tetradic
#5F571B #1B5F35 #1B235F #5F1B45
square
#5F571B #1B5F35 #1B235F #5F1B45
split-complementary
#5F571B #1B455F #351B5F
monochromatic
#181607 #2F2B0D #5F571B #8F8329 #BEAE36

Accessibility & contrast

On white

7.33
#5F571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F571B
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F571B#FFFFFF#000000##FFFFFF
##5F571B1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5413
Deuteranopia (green-blind)
#62581F
Tritanopia (blue-blind)
#67514B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f571b;
/* rgb */ color: rgb(95, 87, 27);
/* oklch */ color: oklch(45.2% 0.080 101.7);
Tailwind
colors: {
  custom: {
    50: '#8f865b',
    500: '#5f571b',
    950: '#000000',
  },
}
SCSS
$custom: #5f571b;
$custom-light: #8f865b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f571b",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 52.941,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45192,
    "c": 0.07961,
    "h": 101.7
  },
  "luminance": 0.09328
}

Semantic roles & 50–950 ramp

primary
#5F571B
secondary
#414B95
accent
#5ADF49
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F571B

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

Preview Lab → · Contrast checker → · Palette generator →

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