#5F581B#5F581B

#5F581B is a mid, moderate yellow. Relative luminance 0.095; OKLCH L 45.4% C 0.081 H 102.7°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5F581B
RGBrgb(95, 88, 27)
HSLhsl(54, 56%, 24%)
HSVhsv(54, 72%, 37%)
CMYKcmyk(0%, 7.4%, 71.6%, 62.7%)
CIE-LABlab(36.91, -5.30, 34.95)
CIE-LCHlch(36.91, 35.35, 98.62°)
OKLaboklab(45.43% -0.0178 0.0786)
OKLCHoklch(45.43% 0.081 102.7)
XYZxyz(8.4072, 9.4918, 2.4260)
Luminance0.0949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F581B #1B225F
analogous
#5F361B #5F581B #445F1B
triadic
#5F581B #1B5F58 #581B5F
tetradic
#5F581B #1B5F36 #1B225F #5F1B44
square
#5F581B #1B5F36 #1B225F #5F1B44
split-complementary
#5F581B #1B445F #361B5F
monochromatic
#181607 #2F2C0D #5F581B #8F8429 #BEB036

Accessibility & contrast

On white

7.25
#5F581B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F581B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F581B
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F581B#FFFFFF#000000##FFFFFF
##5F581B1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605513
Deuteranopia (green-blind)
#63581F
Tritanopia (blue-blind)
#66524C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f581b;
/* rgb */ color: rgb(95, 88, 27);
/* oklch */ color: oklch(45.4% 0.081 102.7);
Tailwind
colors: {
  custom: {
    50: '#8f865b',
    500: '#5f581b',
    950: '#000000',
  },
}
SCSS
$custom: #5f581b;
$custom-light: #8f865b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f581b",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 27
  },
  "hsl": {
    "h": 53.824,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.45434,
    "c": 0.08062,
    "h": 102.7
  },
  "luminance": 0.09491
}

Semantic roles & 50–950 ramp

primary
#5F581B
secondary
#414A95
accent
#58DF49
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F581B

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

Preview Lab → · Contrast checker → · Palette generator →

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