#5F571F#5F571F

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

Color values

HEX#5F571F
RGBrgb(95, 87, 31)
HSLhsl(53, 51%, 25%)
HSVhsv(53, 67%, 37%)
CMYKcmyk(0%, 8.4%, 67.4%, 62.7%)
CIE-LABlab(36.65, -4.43, 32.74)
CIE-LCHlch(36.65, 33.04, 97.71°)
OKLaboklab(45.23% -0.0148 0.0747)
OKLCHoklch(45.23% 0.076 101.2)
XYZxyz(8.3752, 9.3486, 2.6594)
Luminance0.0935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F571F #1F275F
analogous
#5F371F #5F571F #475F1F
triadic
#5F571F #1F5F57 #571F5F
tetradic
#5F571F #1F5F37 #1F275F #5F1F47
square
#5F571F #1F5F37 #1F275F #5F1F47
split-complementary
#5F571F #1F475F #371F5F
monochromatic
#171508 #312D10 #5F571F #8D812E #BBAC3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F571F#FFFFFF#000000##FFFFFF
##5F571F1.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)
#5F5418
Deuteranopia (green-blind)
#625822
Tritanopia (blue-blind)
#66514B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f571f;
/* rgb */ color: rgb(95, 87, 31);
/* oklch */ color: oklch(45.2% 0.076 101.2);
Tailwind
colors: {
  custom: {
    50: '#8f865d',
    500: '#5f571f',
    950: '#000000',
  },
}
SCSS
$custom: #5f571f;
$custom-light: #8f865d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f571f",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 31
  },
  "hsl": {
    "h": 52.5,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45234,
    "c": 0.07612,
    "h": 101.2
  },
  "luminance": 0.09348
}

Semantic roles & 50–950 ramp

primary
#5F571F
secondary
#465094
accent
#5FDA4E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0D0B04
muted
#7D7C79

Preview Lab

Preview with #5F571F

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

Preview Lab → · Contrast checker → · Palette generator →

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