#5F7417#5F7417

#5F7417 is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.4% C 0.117 H 122.0°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5F7417
RGBrgb(95, 116, 23)
HSLhsl(74, 67%, 27%)
HSVhsv(74, 80%, 45%)
CMYKcmyk(18.1%, 0%, 80.2%, 54.5%)
CIE-LABlab(45.61, -21.04, 45.05)
CIE-LCHlch(45.61, 49.72, 115.03°)
OKLaboklab(52.4% -0.062 0.0992)
OKLCHoklch(52.4% 0.117 122)
XYZxyz(11.1195, 14.9855, 3.1171)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7417 #2C1774
analogous
#745A17 #5F7417 #317417
triadic
#5F7417 #175F74 #74175F
tetradic
#5F7417 #17745A #2C1774 #741731
square
#5F7417 #17745A #2C1774 #741731
split-complementary
#5F7417 #173174 #5A1774
monochromatic
#151A05 #35410D #5F7417 #89A721 #B0D630

Accessibility & contrast

On white

5.25
#5F7417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5F7417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7417
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7417#FFFFFF#000000##FFFFFF
##5F74171.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C01
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#646E63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5f7417;
/* rgb */ color: rgb(95, 116, 23);
/* oklch */ color: oklch(52.4% 0.117 122.0);
Tailwind
colors: {
  custom: {
    50: '#8f9c5d',
    500: '#5f7417',
    950: '#000000',
  },
}
SCSS
$custom: #5f7417;
$custom-light: #8f9c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7417",
  "rgb": {
    "r": 95,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 73.548,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.524,
    "c": 0.11696,
    "h": 122
  },
  "luminance": 0.14986
}

Semantic roles & 50–950 ramp

primary
#5F7417
secondary
#563DA9
accent
#3EEA65
background
#F9F9F5
surface
#F1F2E9
border
#CBCCC5
text
#0D0E04
muted
#7E7E79

Preview Lab

Preview with #5F7417

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

Preview Lab → · Contrast checker → · Palette generator →

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