#5F571D#5F571D

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

Color values

HEX#5F571D
RGBrgb(95, 87, 29)
HSLhsl(53, 53%, 24%)
HSVhsv(53, 69%, 37%)
CMYKcmyk(0%, 8.4%, 69.5%, 62.7%)
CIE-LABlab(36.63, -4.57, 33.71)
CIE-LCHlch(36.63, 34.01, 97.73°)
OKLaboklab(45.21% -0.0154 0.0764)
OKLCHoklch(45.21% 0.078 101.4)
XYZxyz(8.3496, 9.3383, 2.5248)
Luminance0.0934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F571D #1D255F
analogous
#5F361D #5F571D #465F1D
triadic
#5F571D #1D5F57 #571D5F
tetradic
#5F571D #1D5F36 #1D255F #5F1D46
square
#5F571D #1D5F36 #1D255F #5F1D46
split-complementary
#5F571D #1D465F #361D5F
monochromatic
#171507 #302C0F #5F571D #8E822B #BDAD3A

Accessibility & contrast

On white

7.32
#5F571D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F571D
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F571D#FFFFFF#000000##FFFFFF
##5F571D1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5416
Deuteranopia (green-blind)
#625820
Tritanopia (blue-blind)
#66514B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f571d;
/* rgb */ color: rgb(95, 87, 29);
/* oklch */ color: oklch(45.2% 0.078 101.4);
Tailwind
colors: {
  custom: {
    50: '#8f865c',
    500: '#5f571d',
    950: '#000000',
  },
}
SCSS
$custom: #5f571d;
$custom-light: #8f865c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f571d",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 29
  },
  "hsl": {
    "h": 52.727,
    "s": 53.226,
    "l": 24.314
  },
  "oklch": {
    "l": 0.45212,
    "c": 0.07791,
    "h": 101.4
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#5F571D
secondary
#444D94
accent
#5DDD4B
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F571D

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

Preview Lab → · Contrast checker → · Palette generator →

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