#5F6017#5F6017

#5F6017 is a mid, moderate yellow. Relative luminance 0.109; OKLCH L 47.4% C 0.092 H 110.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5F6017
RGBrgb(95, 96, 23)
HSLhsl(61, 61%, 23%)
HSVhsv(61, 76%, 38%)
CMYKcmyk(1%, 0%, 76%, 62.4%)
CIE-LABlab(39.34, -10.18, 39.12)
CIE-LCHlch(39.34, 40.42, 104.58°)
OKLaboklab(47.36% -0.032 0.0867)
OKLCHoklch(47.36% 0.092 110.2)
XYZxyz(9.0572, 10.8608, 2.4297)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6017 #181760
analogous
#603C17 #5F6017 #3A6017
triadic
#5F6017 #175F60 #60175F
tetradic
#5F6017 #17603C #181760 #60173A
square
#5F6017 #17603C #181760 #60173A
split-complementary
#5F6017 #173A60 #3C1760
monochromatic
#181906 #2E2F0B #5F6017 #909123 #C1C32F

Accessibility & contrast

On white

6.62
#5F6017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F6017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6017
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6017#FFFFFF#000000##FFFFFF
##5F60171.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685C0A
Deuteranopia (green-blind)
#695E1D
Tritanopia (blue-blind)
#665A52
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f6017;
/* rgb */ color: rgb(95, 96, 23);
/* oklch */ color: oklch(47.4% 0.092 110.2);
Tailwind
colors: {
  custom: {
    50: '#8f8d5a',
    500: '#5f6017',
    950: '#000000',
  },
}
SCSS
$custom: #5f6017;
$custom-light: #8f8d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6017",
  "rgb": {
    "r": 95,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 60.822,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.47362,
    "c": 0.09236,
    "h": 110.2
  },
  "luminance": 0.10861
}

Semantic roles & 50–950 ramp

primary
#5F6017
secondary
#3D3C97
accent
#43E446
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F6017

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

Preview Lab → · Contrast checker → · Palette generator →

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