#5F8420#5F8420

#5F8420 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.6% C 0.132 H 128.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5F8420
RGBrgb(95, 132, 32)
HSLhsl(82, 61%, 32%)
HSVhsv(82, 76%, 52%)
CMYKcmyk(28%, 0%, 75.8%, 48.2%)
CIE-LABlab(50.73, -28.51, 46.72)
CIE-LCHlch(50.73, 54.73, 121.39°)
OKLaboklab(56.56% -0.0816 0.1043)
OKLCHoklch(56.56% 0.132 128.1)
XYZxyz(13.2313, 19.0394, 4.3441)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8420 #452084
analogous
#847720 #5F8420 #2D8420
triadic
#5F8420 #205F84 #84205F
tetradic
#5F8420 #208477 #452084 #84202D
square
#5F8420 #208477 #452084 #84202D
split-complementary
#5F8420 #202D84 #772084
monochromatic
#182108 #3C5314 #5F8420 #82B52C #A1D34B

Accessibility & contrast

On white

4.37
#5F8420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5F8420 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8420
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8420#FFFFFF#000000##000000
##5F84201.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0C
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#627E71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5f8420;
/* rgb */ color: rgb(95, 132, 32);
/* oklch */ color: oklch(56.6% 0.132 128.1);
Tailwind
colors: {
  custom: {
    50: '#90a863',
    500: '#5f8420',
    950: '#000000',
  },
}
SCSS
$custom: #5f8420;
$custom-light: #90a863;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8420",
  "rgb": {
    "r": 95,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 82.2,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56564,
    "c": 0.13242,
    "h": 128.1
  },
  "luminance": 0.1904
}

Semantic roles & 50–950 ramp

primary
#5F8420
secondary
#724AB6
accent
#44E47F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F8420

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

Preview Lab → · Contrast checker → · Palette generator →

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