#5F9D21#5F9D21

#5F9D21 is a light, vivid yellow-green. Relative luminance 0.267; OKLCH L 63.0% C 0.164 H 133.2°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5F9D21
RGBrgb(95, 157, 33)
HSLhsl(90, 65%, 37%)
HSVhsv(90, 79%, 62%)
CMYKcmyk(39.5%, 0%, 79%, 38.4%)
CIE-LABlab(58.65, -39.79, 53.96)
CIE-LCHlch(58.65, 67.05, 126.41°)
OKLaboklab(63.03% -0.1121 0.1196)
OKLCHoklch(63.03% 0.164 133.2)
XYZxyz(17.0505, 26.6558, 5.6852)
Luminance0.2666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9D21 #5F219D
analogous
#9D9D21 #5F9D21 #219D21
triadic
#5F9D21 #215F9D #9D215F
tetradic
#5F9D21 #219D9D #5F219D #9D2121
square
#5F9D21 #219D9D #5F219D #9D2121
split-complementary
#5F9D21 #21219D #9D219D
monochromatic
#22380C #406A16 #5F9D21 #7ED02C #9CDD5C

Accessibility & contrast

On white

3.32
#5F9D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#5F9D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9D21
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9D21#FFFFFF#000000##000000
##5F9D211.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#9B8B2E
Tritanopia (blue-blind)
#5F9686
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5f9d21;
/* rgb */ color: rgb(95, 157, 33);
/* oklch */ color: oklch(63.0% 0.164 133.2);
Tailwind
colors: {
  custom: {
    50: '#92ba67',
    500: '#5f9d21',
    950: '#000000',
  },
}
SCSS
$custom: #5f9d21;
$custom-light: #92ba67;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9d21",
  "rgb": {
    "r": 95,
    "g": 157,
    "b": 33
  },
  "hsl": {
    "h": 90,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.63025,
    "c": 0.16396,
    "h": 133.2
  },
  "luminance": 0.26657
}

Semantic roles & 50–950 ramp

primary
#5F9D21
secondary
#8D59C1
accent
#40E894
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9D21

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

Preview Lab → · Contrast checker → · Palette generator →

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