#5F581F#5F581F

#5F581F is a mid, moderate yellow. Relative luminance 0.095; OKLCH L 45.5% C 0.077 H 102.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5F581F
RGBrgb(95, 88, 31)
HSLhsl(53, 51%, 25%)
HSVhsv(53, 67%, 37%)
CMYKcmyk(0%, 7.4%, 67.4%, 62.7%)
CIE-LABlab(36.95, -5.02, 33.07)
CIE-LCHlch(36.95, 33.45, 98.64°)
OKLaboklab(45.48% -0.0165 0.0754)
OKLCHoklch(45.48% 0.077 102.3)
XYZxyz(8.4567, 9.5116, 2.6865)
Luminance0.0951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F581F #1F265F
analogous
#5F381F #5F581F #465F1F
triadic
#5F581F #1F5F58 #581F5F
tetradic
#5F581F #1F5F38 #1F265F #5F1F46
square
#5F581F #1F5F38 #1F265F #5F1F46
split-complementary
#5F581F #1F465F #381F5F
monochromatic
#171508 #312D10 #5F581F #8D832E #BBAD3D

Accessibility & contrast

On white

7.24
#5F581F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F581F
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F581F#FFFFFF#000000##FFFFFF
##5F581F1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605518
Deuteranopia (green-blind)
#625822
Tritanopia (blue-blind)
#66524C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f581f;
/* rgb */ color: rgb(95, 88, 31);
/* oklch */ color: oklch(45.5% 0.077 102.3);
Tailwind
colors: {
  custom: {
    50: '#8f865e',
    500: '#5f581f',
    950: '#000000',
  },
}
SCSS
$custom: #5f581f;
$custom-light: #8f865e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f581f",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 31
  },
  "hsl": {
    "h": 53.438,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45475,
    "c": 0.07714,
    "h": 102.3
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#5F581F
secondary
#464F94
accent
#5DDA4E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0D0B04
muted
#7D7C79

Preview Lab

Preview with #5F581F

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

Preview Lab → · Contrast checker → · Palette generator →

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