#5F5E17#5F5E17

#5F5E17 is a mid, moderate yellow. Relative luminance 0.105; OKLCH L 46.9% C 0.090 H 108.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5F5E17
RGBrgb(95, 94, 23)
HSLhsl(59, 61%, 23%)
HSVhsv(59, 76%, 37%)
CMYKcmyk(0%, 1.1%, 75.8%, 62.7%)
CIE-LABlab(38.73, -9.03, 38.52)
CIE-LCHlch(38.73, 39.56, 103.20°)
OKLaboklab(46.87% -0.0288 0.0854)
OKLCHoklch(46.87% 0.09 108.6)
XYZxyz(8.8770, 10.5004, 2.3696)
Luminance0.1050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5E17 #17185F
analogous
#5F3A17 #5F5E17 #3C5F17
triadic
#5F5E17 #175F5E #5E175F
tetradic
#5F5E17 #175F3A #17185F #5F173C
square
#5F5E17 #175F3A #17185F #5F173C
split-complementary
#5F5E17 #173C5F #3A175F
monochromatic
#191806 #2E2D0B #5F5E17 #908F23 #C2C02F

Accessibility & contrast

On white

6.77
#5F5E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5F5E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5E17
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5E17#FFFFFF#000000##FFFFFF
##5F5E171.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A0A
Deuteranopia (green-blind)
#675C1C
Tritanopia (blue-blind)
#665850
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f5e17;
/* rgb */ color: rgb(95, 94, 23);
/* oklch */ color: oklch(46.9% 0.090 108.6);
Tailwind
colors: {
  custom: {
    50: '#8f8b5a',
    500: '#5f5e17',
    950: '#000000',
  },
}
SCSS
$custom: #5f5e17;
$custom-light: #8f8b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5e17",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 59.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.46867,
    "c": 0.09009,
    "h": 108.6
  },
  "luminance": 0.105
}

Semantic roles & 50–950 ramp

primary
#5F5E17
secondary
#3C3D96
accent
#46E444
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F5E17

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

Preview Lab → · Contrast checker → · Palette generator →

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