#5F8A20#5F8A20

#5F8A20 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.140 H 129.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F8A20
RGBrgb(95, 138, 32)
HSLhsl(84, 62%, 33%)
HSVhsv(84, 77%, 54%)
CMYKcmyk(31.2%, 0%, 76.8%, 45.9%)
CIE-LABlab(52.63, -31.35, 48.56)
CIE-LCHlch(52.63, 57.80, 122.85°)
OKLaboklab(58.11% -0.0894 0.1081)
OKLCHoklch(58.11% 0.14 129.6)
XYZxyz(14.0685, 20.7137, 4.6231)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A20 #4B208A
analogous
#8A8020 #5F8A20 #2A8A20
triadic
#5F8A20 #205F8A #8A205F
tetradic
#5F8A20 #208A80 #4B208A #8A202A
square
#5F8A20 #208A80 #4B208A #8A202A
split-complementary
#5F8A20 #202A8A #80208A
monochromatic
#1B2709 #3D5814 #5F8A20 #81BC2C #9FD64E

Accessibility & contrast

On white

4.08
#5F8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5F8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A20
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A20#FFFFFF#000000##000000
##5F8A201.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918008
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a20;
/* rgb */ color: rgb(95, 138, 32);
/* oklch */ color: oklch(58.1% 0.140 129.6);
Tailwind
colors: {
  custom: {
    50: '#90ac64',
    500: '#5f8a20',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a20;
$custom-light: #90ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a20",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 84.34,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5811,
    "c": 0.14029,
    "h": 129.6
  },
  "luminance": 0.20714
}

Semantic roles & 50–950 ramp

primary
#5F8A20
secondary
#794DB9
accent
#42E585
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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