#5F5317#5F5317

#5F5317 is a dark, moderate yellow. Relative luminance 0.087; OKLCH L 44.2% C 0.079 H 97.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5F5317
RGBrgb(95, 83, 23)
HSLhsl(50, 61%, 23%)
HSVhsv(50, 76%, 37%)
CMYKcmyk(0%, 12.6%, 75.8%, 62.7%)
CIE-LABlab(35.36, -2.57, 35.21)
CIE-LCHlch(35.36, 35.30, 94.18°)
OKLaboklab(44.19% -0.0105 0.0784)
OKLCHoklch(44.19% 0.079 97.6)
XYZxyz(7.9676, 8.6817, 2.0665)
Luminance0.0868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5317 #17235F
analogous
#5F2F17 #5F5317 #475F17
triadic
#5F5317 #175F53 #53175F
tetradic
#5F5317 #175F2F #17235F #5F1747
square
#5F5317 #175F2F #17235F #5F1747
split-complementary
#5F5317 #17475F #2F175F
monochromatic
#191606 #2E280B #5F5317 #907E23 #C2A92F

Accessibility & contrast

On white

7.67
#5F5317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F5317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5317
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5317#FFFFFF#000000##FFFFFF
##5F53171.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510E
Deuteranopia (green-blind)
#5F551B
Tritanopia (blue-blind)
#674C47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f5317;
/* rgb */ color: rgb(95, 83, 23);
/* oklch */ color: oklch(44.2% 0.079 97.6);
Tailwind
colors: {
  custom: {
    50: '#8f8358',
    500: '#5f5317',
    950: '#000000',
  },
}
SCSS
$custom: #5f5317;
$custom-light: #8f8358;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5317",
  "rgb": {
    "r": 95,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 50,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44194,
    "c": 0.0791,
    "h": 97.6
  },
  "luminance": 0.08681
}

Semantic roles & 50–950 ramp

primary
#5F5317
secondary
#3C4B96
accent
#5EE444
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5317

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

Preview Lab → · Contrast checker → · Palette generator →

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