#5F5215#5F5215

#5F5215 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 43.9% C 0.080 H 96.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5F5215
RGBrgb(95, 82, 21)
HSLhsl(49, 64%, 23%)
HSVhsv(49, 78%, 37%)
CMYKcmyk(0%, 13.7%, 77.9%, 62.7%)
CIE-LABlab(35.05, -2.08, 35.78)
CIE-LCHlch(35.05, 35.84, 93.33°)
OKLaboklab(43.94% -0.0093 0.0792)
OKLCHoklch(43.94% 0.08 96.7)
XYZxyz(7.8724, 8.5220, 1.9396)
Luminance0.0852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5215 #15225F
analogous
#5F2D15 #5F5215 #475F15
triadic
#5F5215 #155F52 #52155F
tetradic
#5F5215 #155F2D #15225F #5F1547
square
#5F5215 #155F2D #15225F #5F1547
split-complementary
#5F5215 #15475F #2D155F
monochromatic
#191606 #2D270A #5F5215 #917D20 #C3A92B

Accessibility & contrast

On white

7.77
#5F5215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F5215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5215
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5215#FFFFFF#000000##FFFFFF
##5F52151.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f5215;
/* rgb */ color: rgb(95, 82, 21);
/* oklch */ color: oklch(43.9% 0.080 96.7);
Tailwind
colors: {
  custom: {
    50: '#8f8257',
    500: '#5f5215',
    950: '#000000',
  },
}
SCSS
$custom: #5f5215;
$custom-light: #8f8257;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5215",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 21
  },
  "hsl": {
    "h": 49.459,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43938,
    "c": 0.07973,
    "h": 96.7
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#5F5215
secondary
#3A4A96
accent
#5EE741
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5F5215

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

Preview Lab → · Contrast checker → · Palette generator →

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