#5F8B20#5F8B20

#5F8B20 is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.4% C 0.142 H 129.8°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8B20
RGBrgb(95, 139, 32)
HSLhsl(85, 63%, 34%)
HSVhsv(85, 77%, 55%)
CMYKcmyk(31.7%, 0%, 77%, 45.5%)
CIE-LABlab(52.95, -31.82, 48.87)
CIE-LCHlch(52.95, 58.31, 123.07°)
OKLaboklab(58.37% -0.0906 0.1088)
OKLCHoklch(58.37% 0.142 129.8)
XYZxyz(14.2126, 21.0020, 4.6712)
Luminance0.2100 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B20 #4C208B
analogous
#8B8120 #5F8B20 #298B20
triadic
#5F8B20 #205F8B #8B205F
tetradic
#5F8B20 #208B81 #4C208B #8B2029
square
#5F8B20 #208B81 #4C208B #8B2029
split-complementary
#5F8B20 #20298B #81208B
monochromatic
#1B2809 #3D5915 #5F8B20 #81BD2B #9FD64F

Accessibility & contrast

On white

4.04
#5F8B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F8B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B20
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B20#FFFFFF#000000##000000
##5F8B201.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928008
Deuteranopia (green-blind)
#8C7D2B
Tritanopia (blue-blind)
#628577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b20;
/* rgb */ color: rgb(95, 139, 32);
/* oklch */ color: oklch(58.4% 0.142 129.8);
Tailwind
colors: {
  custom: {
    50: '#90ad64',
    500: '#5f8b20',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b20;
$custom-light: #90ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b20",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 84.673,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58368,
    "c": 0.14158,
    "h": 129.8
  },
  "luminance": 0.21002
}

Semantic roles & 50–950 ramp

primary
#5F8B20
secondary
#7A4DBA
accent
#42E685
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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