#5F5517#5F5517

#5F5517 is a dark, moderate yellow. Relative luminance 0.090; OKLCH L 44.7% C 0.081 H 99.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#5F5517
RGBrgb(95, 85, 23)
HSLhsl(52, 61%, 23%)
HSVhsv(52, 76%, 37%)
CMYKcmyk(0%, 10.5%, 75.8%, 62.7%)
CIE-LABlab(35.97, -3.77, 35.81)
CIE-LCHlch(35.97, 36.01, 96.00°)
OKLaboklab(44.67% -0.0139 0.0797)
OKLCHoklch(44.67% 0.081 99.9)
XYZxyz(8.1228, 8.9921, 2.1182)
Luminance0.0899 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5517 #17215F
analogous
#5F3117 #5F5517 #455F17
triadic
#5F5517 #175F55 #55175F
tetradic
#5F5517 #175F31 #17215F #5F1745
square
#5F5517 #175F31 #17215F #5F1745
split-complementary
#5F5517 #17455F #31175F
monochromatic
#191606 #2E290B #5F5517 #908123 #C2AD2F

Accessibility & contrast

On white

7.50
#5F5517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F5517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5517
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5517#FFFFFF#000000##FFFFFF
##5F55171.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E520D
Deuteranopia (green-blind)
#61561B
Tritanopia (blue-blind)
#674E49
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f5517;
/* rgb */ color: rgb(95, 85, 23);
/* oklch */ color: oklch(44.7% 0.081 99.9);
Tailwind
colors: {
  custom: {
    50: '#8f8459',
    500: '#5f5517',
    950: '#000000',
  },
}
SCSS
$custom: #5f5517;
$custom-light: #8f8459;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5517",
  "rgb": {
    "r": 95,
    "g": 85,
    "b": 23
  },
  "hsl": {
    "h": 51.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.44673,
    "c": 0.08087,
    "h": 99.9
  },
  "luminance": 0.08992
}

Semantic roles & 50–950 ramp

primary
#5F5517
secondary
#3C4996
accent
#5AE444
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F5517

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

Preview Lab → · Contrast checker → · Palette generator →

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