#5F8D17#5F8D17

#5F8D17 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.149 H 129.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5F8D17
RGBrgb(95, 141, 23)
HSLhsl(83, 72%, 32%)
HSVhsv(83, 84%, 55%)
CMYKcmyk(32.6%, 0%, 83.7%, 44.7%)
CIE-LABlab(53.54, -33.20, 52.27)
CIE-LCHlch(53.54, 61.92, 122.42°)
OKLaboklab(58.83% -0.095 0.1144)
OKLCHoklch(58.83% 0.149 129.7)
XYZxyz(14.3988, 21.5441, 4.2102)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D17 #45178D
analogous
#8D8017 #5F8D17 #248D17
triadic
#5F8D17 #175F8D #8D175F
tetradic
#5F8D17 #178D80 #45178D #8D1724
square
#5F8D17 #178D80 #45178D #8D1724
split-complementary
#5F8D17 #17248D #80178D
monochromatic
#182406 #3C580E #5F8D17 #82C220 #A1E03F

Accessibility & contrast

On white

3.96
#5F8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5F8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D17
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D17#FFFFFF#000000##000000
##5F8D171.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#628678
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d17;
/* rgb */ color: rgb(95, 141, 23);
/* oklch */ color: oklch(58.8% 0.149 129.7);
Tailwind
colors: {
  custom: {
    50: '#91ae60',
    500: '#5f8d17',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d17;
$custom-light: #91ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d17",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 83.39,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58833,
    "c": 0.14875,
    "h": 129.7
  },
  "luminance": 0.21545
}

Semantic roles & 50–950 ramp

primary
#5F8D17
secondary
#7240C0
accent
#39EF80
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5F8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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