#5F5217#5F5217

#5F5217 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 44.0% C 0.078 H 96.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5F5217
RGBrgb(95, 82, 23)
HSLhsl(49, 61%, 23%)
HSVhsv(49, 76%, 37%)
CMYKcmyk(0%, 13.7%, 75.8%, 62.7%)
CIE-LABlab(35.06, -1.97, 34.91)
CIE-LCHlch(35.06, 34.96, 93.23°)
OKLaboklab(43.96% -0.0088 0.0778)
OKLCHoklch(43.96% 0.078 96.4)
XYZxyz(7.8917, 8.5298, 2.0412)
Luminance0.0853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5217 #17245F
analogous
#5F2E17 #5F5217 #485F17
triadic
#5F5217 #175F52 #52175F
tetradic
#5F5217 #175F2E #17245F #5F1748
square
#5F5217 #175F2E #17245F #5F1748
split-complementary
#5F5217 #17485F #2E175F
monochromatic
#191506 #2E270B #5F5217 #907D23 #C2A72F

Accessibility & contrast

On white

7.76
#5F5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F5217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5217
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5217#FFFFFF#000000##FFFFFF
##5F52171.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500E
Deuteranopia (green-blind)
#5E541A
Tritanopia (blue-blind)
#674B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f5217;
/* rgb */ color: rgb(95, 82, 23);
/* oklch */ color: oklch(44.0% 0.078 96.4);
Tailwind
colors: {
  custom: {
    50: '#8f8258',
    500: '#5f5217',
    950: '#000000',
  },
}
SCSS
$custom: #5f5217;
$custom-light: #8f8258;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5217",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 49.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.07826,
    "h": 96.4
  },
  "luminance": 0.08529
}

Semantic roles & 50–950 ramp

primary
#5F5217
secondary
#3C4C96
accent
#61E444
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5217

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

Preview Lab → · Contrast checker → · Palette generator →

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