#5F9820#5F9820

#5F9820 is a mid, vivid yellow-green. Relative luminance 0.250; OKLCH L 61.7% C 0.158 H 132.3°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F9820
RGBrgb(95, 152, 32)
HSLhsl(89, 65%, 36%)
HSVhsv(89, 79%, 60%)
CMYKcmyk(37.5%, 0%, 78.9%, 40.4%)
CIE-LABlab(57.07, -37.68, 52.79)
CIE-LCHlch(57.07, 64.86, 125.52°)
OKLaboklab(61.73% -0.1065 0.117)
OKLCHoklch(61.73% 0.158 132.3)
XYZxyz(16.2081, 24.9930, 5.3363)
Luminance0.2499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9820 #592098
analogous
#989520 #5F9820 #239820
triadic
#5F9820 #205F98 #98205F
tetradic
#5F9820 #209895 #592098 #982023
square
#5F9820 #209895 #592098 #982023
split-complementary
#5F9820 #202398 #952098
monochromatic
#20330B #3F6515 #5F9820 #7FCB2B #9DDC57

Accessibility & contrast

On white

3.50
#5F9820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#5F9820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9820
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9820#FFFFFF#000000##000000
##5F98201.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C00
Deuteranopia (green-blind)
#97872D
Tritanopia (blue-blind)
#609282
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f9820;
/* rgb */ color: rgb(95, 152, 32);
/* oklch */ color: oklch(61.7% 0.158 132.3);
Tailwind
colors: {
  custom: {
    50: '#91b666',
    500: '#5f9820',
    950: '#000000',
  },
}
SCSS
$custom: #5f9820;
$custom-light: #91b666;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9820",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 88.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61727,
    "c": 0.15821,
    "h": 132.3
  },
  "luminance": 0.24994
}

Semantic roles & 50–950 ramp

primary
#5F9820
secondary
#8754BF
accent
#40E890
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9820

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

Preview Lab → · Contrast checker → · Palette generator →

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