#5F591F#5F591F

#5F591F is a mid, moderate yellow. Relative luminance 0.097; OKLCH L 45.7% C 0.078 H 103.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5F591F
RGBrgb(95, 89, 31)
HSLhsl(54, 51%, 25%)
HSVhsv(54, 67%, 37%)
CMYKcmyk(0%, 6.3%, 67.4%, 62.7%)
CIE-LABlab(37.26, -5.61, 33.40)
CIE-LCHlch(37.26, 33.87, 99.54°)
OKLaboklab(45.72% -0.0181 0.0761)
OKLCHoklch(45.72% 0.078 103.4)
XYZxyz(8.5393, 9.6769, 2.7141)
Luminance0.0968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F591F #1F255F
analogous
#5F391F #5F591F #455F1F
triadic
#5F591F #1F5F59 #591F5F
tetradic
#5F591F #1F5F39 #1F255F #5F1F45
square
#5F591F #1F5F39 #1F255F #5F1F45
split-complementary
#5F591F #1F455F #391F5F
monochromatic
#171608 #312E10 #5F591F #8D842E #BBAF3D

Accessibility & contrast

On white

7.15
#5F591F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5F591F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F591F
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F591F#FFFFFF#000000##FFFFFF
##5F591F1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615618
Deuteranopia (green-blind)
#635922
Tritanopia (blue-blind)
#66534D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f591f;
/* rgb */ color: rgb(95, 89, 31);
/* oklch */ color: oklch(45.7% 0.078 103.4);
Tailwind
colors: {
  custom: {
    50: '#8f875e',
    500: '#5f591f',
    950: '#000000',
  },
}
SCSS
$custom: #5f591f;
$custom-light: #8f875e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f591f",
  "rgb": {
    "r": 95,
    "g": 89,
    "b": 31
  },
  "hsl": {
    "h": 54.375,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.45718,
    "c": 0.07818,
    "h": 103.4
  },
  "luminance": 0.09677
}

Semantic roles & 50–950 ramp

primary
#5F591F
secondary
#464D94
accent
#5BDA4E
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0D0B04
muted
#7D7C79

Preview Lab

Preview with #5F591F

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

Preview Lab → · Contrast checker → · Palette generator →

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