#5F8F17#5F8F17

#5F8F17 is a mid, vivid yellow-green. Relative luminance 0.221; OKLCH L 59.4% C 0.151 H 130.1°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5F8F17
RGBrgb(95, 143, 23)
HSLhsl(84, 72%, 33%)
HSVhsv(84, 84%, 56%)
CMYKcmyk(33.6%, 0%, 83.9%, 43.9%)
CIE-LABlab(54.17, -34.11, 52.83)
CIE-LCHlch(54.17, 62.89, 122.85°)
OKLaboklab(59.35% -0.0975 0.1156)
OKLCHoklch(59.35% 0.151 130.1)
XYZxyz(14.6964, 22.1392, 4.3094)
Luminance0.2214 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8F17 #47178F
analogous
#8F8317 #5F8F17 #238F17
triadic
#5F8F17 #175F8F #8F175F
tetradic
#5F8F17 #178F83 #47178F #8F1723
square
#5F8F17 #178F83 #47178F #8F1723
split-complementary
#5F8F17 #17238F #83178F
monochromatic
#192606 #3C5A0F #5F8F17 #82C41F #A0E040

Accessibility & contrast

On white

3.87
#5F8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5F8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8F17
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8F17#FFFFFF#000000##000000
##5F8F171.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#62887A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f8f17;
/* rgb */ color: rgb(95, 143, 23);
/* oklch */ color: oklch(59.4% 0.151 130.1);
Tailwind
colors: {
  custom: {
    50: '#91b061',
    500: '#5f8f17',
    950: '#000000',
  },
}
SCSS
$custom: #5f8f17;
$custom-light: #91b061;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8f17",
  "rgb": {
    "r": 95,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 84,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5935,
    "c": 0.15124,
    "h": 130.1
  },
  "luminance": 0.2214
}

Semantic roles & 50–950 ramp

primary
#5F8F17
secondary
#7441C1
accent
#39EF82
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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