#5F8E20#5F8E20

#5F8E20 is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.1% C 0.145 H 130.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F8E20
RGBrgb(95, 142, 32)
HSLhsl(86, 63%, 34%)
HSVhsv(86, 77%, 56%)
CMYKcmyk(33.1%, 0%, 77.5%, 44.3%)
CIE-LABlab(53.90, -33.20, 49.78)
CIE-LCHlch(53.90, 59.84, 123.70°)
OKLaboklab(59.14% -0.0944 0.1107)
OKLCHoklch(59.14% 0.145 130.5)
XYZxyz(14.6529, 21.8827, 4.8180)
Luminance0.2188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8E20 #4F208E
analogous
#8E8620 #5F8E20 #288E20
triadic
#5F8E20 #205F8E #8E205F
tetradic
#5F8E20 #208E86 #4F208E #8E2028
square
#5F8E20 #208E86 #4F208E #8E2028
split-complementary
#5F8E20 #20288E #86208E
monochromatic
#1C2A09 #3E5C15 #5F8E20 #80C02B #9ED851

Accessibility & contrast

On white

3.91
#5F8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5F8E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8E20
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8E20#FFFFFF#000000##000000
##5F8E201.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958306
Deuteranopia (green-blind)
#8E802B
Tritanopia (blue-blind)
#618879
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f8e20;
/* rgb */ color: rgb(95, 142, 32);
/* oklch */ color: oklch(59.1% 0.145 130.5);
Tailwind
colors: {
  custom: {
    50: '#91af64',
    500: '#5f8e20',
    950: '#000000',
  },
}
SCSS
$custom: #5f8e20;
$custom-light: #91af64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8e20",
  "rgb": {
    "r": 95,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 85.636,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59143,
    "c": 0.14547,
    "h": 130.5
  },
  "luminance": 0.21883
}

Semantic roles & 50–950 ramp

primary
#5F8E20
secondary
#7D4FBB
accent
#42E688
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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