#5F9921#5F9921

#5F9921 is a mid, vivid yellow-green. Relative luminance 0.253; OKLCH L 62.0% C 0.159 H 132.5°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5F9921
RGBrgb(95, 153, 33)
HSLhsl(89, 65%, 36%)
HSVhsv(89, 78%, 60%)
CMYKcmyk(37.9%, 0%, 78.4%, 40%)
CIE-LABlab(57.39, -38.06, 52.77)
CIE-LCHlch(57.39, 65.06, 125.80°)
OKLaboklab(61.99% -0.1075 0.1171)
OKLCHoklch(61.99% 0.159 132.5)
XYZxyz(16.3849, 25.3244, 5.4633)
Luminance0.2532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9921 #5B2199
analogous
#999721 #5F9921 #239921
triadic
#5F9921 #215F99 #99215F
tetradic
#5F9921 #219997 #5B2199 #992123
square
#5F9921 #219997 #5B2199 #992123
split-complementary
#5F9921 #212399 #972199
monochromatic
#20340B #406716 #5F9921 #7ECB2C #9CDB59

Accessibility & contrast

On white

3.46
#5F9921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#5F9921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9921
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9921#FFFFFF#000000##000000
##5F99211.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D01
Deuteranopia (green-blind)
#98882E
Tritanopia (blue-blind)
#609383
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #5f9921;
/* rgb */ color: rgb(95, 153, 33);
/* oklch */ color: oklch(62.0% 0.159 132.5);
Tailwind
colors: {
  custom: {
    50: '#92b766',
    500: '#5f9921',
    950: '#000000',
  },
}
SCSS
$custom: #5f9921;
$custom-light: #92b766;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9921",
  "rgb": {
    "r": 95,
    "g": 153,
    "b": 33
  },
  "hsl": {
    "h": 89,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61991,
    "c": 0.15894,
    "h": 132.5
  },
  "luminance": 0.25325
}

Semantic roles & 50–950 ramp

primary
#5F9921
secondary
#8956BF
accent
#40E891
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9921

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

Preview Lab → · Contrast checker → · Palette generator →

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