#5F571A#5F571A

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

Color values

HEX#5F571A
RGBrgb(95, 87, 26)
HSLhsl(53, 57%, 24%)
HSVhsv(53, 73%, 37%)
CMYKcmyk(0%, 8.4%, 72.6%, 62.7%)
CIE-LABlab(36.60, -4.77, 35.10)
CIE-LCHlch(36.60, 35.42, 97.75°)
OKLaboklab(45.18% -0.0164 0.0788)
OKLCHoklch(45.18% 0.08 101.8)
XYZxyz(8.3143, 9.3242, 2.3389)
Luminance0.0932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F571A #1A225F
analogous
#5F341A #5F571A #445F1A
triadic
#5F571A #1A5F57 #571A5F
tetradic
#5F571A #1A5F34 #1A225F #5F1A44
square
#5F571A #1A5F34 #1A225F #5F1A44
split-complementary
#5F571A #1A445F #341A5F
monochromatic
#181607 #2F2B0D #5F571A #8F8327 #BFAF34

Accessibility & contrast

On white

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

On black

2.86
#5F571A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F571A#FFFFFF#000000##FFFFFF
##5F571A1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f571a;
/* rgb */ color: rgb(95, 87, 26);
/* oklch */ color: oklch(45.2% 0.080 101.8);
Tailwind
colors: {
  custom: {
    50: '#8f865a',
    500: '#5f571a',
    950: '#000000',
  },
}
SCSS
$custom: #5f571a;
$custom-light: #8f865a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f571a",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 53.043,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.08044,
    "h": 101.8
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

primary
#5F571A
secondary
#404A95
accent
#59E048
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F571A

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

Preview Lab → · Contrast checker → · Palette generator →

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