#5F4E17#5F4E17

#5F4E17 is a dark, moderate yellow. Relative luminance 0.079; OKLCH L 43.0% C 0.075 H 91.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5F4E17
RGBrgb(95, 78, 23)
HSLhsl(46, 61%, 23%)
HSVhsv(46, 76%, 37%)
CMYKcmyk(0%, 17.9%, 75.8%, 62.7%)
CIE-LABlab(33.87, 0.46, 33.71)
CIE-LCHlch(33.87, 33.71, 89.22°)
OKLaboklab(43.01% -0.0018 0.0752)
OKLCHoklch(43.01% 0.075 91.4)
XYZxyz(7.5988, 7.9440, 1.9435)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4E17 #17285F
analogous
#5F2A17 #5F4E17 #4C5F17
triadic
#5F4E17 #175F4E #4E175F
tetradic
#5F4E17 #175F2A #17285F #5F174C
square
#5F4E17 #175F2A #17285F #5F174C
split-complementary
#5F4E17 #174C5F #2A175F
monochromatic
#191406 #2E260B #5F4E17 #907623 #C29F2F

Accessibility & contrast

On white

8.11
#5F4E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F4E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4E17
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4E17#FFFFFF#000000##FFFFFF
##5F4E171.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D0F
Deuteranopia (green-blind)
#5B521A
Tritanopia (blue-blind)
#674743
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f4e17;
/* rgb */ color: rgb(95, 78, 23);
/* oklch */ color: oklch(43.0% 0.075 91.4);
Tailwind
colors: {
  custom: {
    50: '#8f7f58',
    500: '#5f4e17',
    950: '#000000',
  },
}
SCSS
$custom: #5f4e17;
$custom-light: #8f7f58;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4e17",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 45.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43009,
    "c": 0.07524,
    "h": 91.4
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#5F4E17
secondary
#3C5196
accent
#6AE444
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F4E17

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

Preview Lab → · Contrast checker → · Palette generator →

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