#5F8417#5F8417

#5F8417 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.5% C 0.137 H 127.5°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5F8417
RGBrgb(95, 132, 23)
HSLhsl(80, 70%, 30%)
HSVhsv(80, 83%, 52%)
CMYKcmyk(28%, 0%, 82.6%, 48.2%)
CIE-LABlab(50.68, -28.99, 49.70)
CIE-LCHlch(50.68, 57.53, 120.26°)
OKLaboklab(56.51% -0.0836 0.109)
OKLCHoklch(56.51% 0.137 127.5)
XYZxyz(13.1253, 18.9970, 3.7857)
Luminance0.1900 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8417 #3C1784
analogous
#847217 #5F8417 #288417
triadic
#5F8417 #175F84 #84175F
tetradic
#5F8417 #178472 #3C1784 #841728
square
#5F8417 #178472 #3C1784 #841728
split-complementary
#5F8417 #172884 #721784
monochromatic
#141C05 #39500E #5F8417 #85B820 #A5DC39

Accessibility & contrast

On white

4.38
#5F8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5F8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8417
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8417#FFFFFF#000000##000000
##5F84171.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#637E70
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f8417;
/* rgb */ color: rgb(95, 132, 23);
/* oklch */ color: oklch(56.5% 0.137 127.5);
Tailwind
colors: {
  custom: {
    50: '#90a85f',
    500: '#5f8417',
    950: '#000000',
  },
}
SCSS
$custom: #5f8417;
$custom-light: #90a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8417",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 80.367,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56508,
    "c": 0.1374,
    "h": 127.5
  },
  "luminance": 0.18997
}

Semantic roles & 50–950 ramp

primary
#5F8417
secondary
#683FB8
accent
#3BED77
background
#F9FAF5
surface
#F1F4EA
border
#CBCEC6
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #5F8417

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

Preview Lab → · Contrast checker → · Palette generator →

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