#5FAF21#5FAF21

#5FAF21 is a light, vivid yellow-green. Relative luminance 0.332; OKLCH L 67.7% C 0.186 H 135.3°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5FAF21
RGBrgb(95, 175, 33)
HSLhsl(94, 68%, 41%)
HSVhsv(94, 81%, 69%)
CMYKcmyk(45.7%, 0%, 81.1%, 31.4%)
CIE-LABlab(64.32, -47.23, 59.23)
CIE-LCHlch(64.32, 75.76, 128.57°)
OKLaboklab(67.67% -0.1321 0.1307)
OKLCHoklch(67.67% 0.186 135.3)
XYZxyz(20.3233, 33.2014, 6.7762)
Luminance0.3320 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FAF21 #7121AF
analogous
#A6AF21 #5FAF21 #21AF2A
triadic
#5FAF21 #215FAF #AF215F
tetradic
#5FAF21 #21A6AF #7121AF #AF2A21
square
#5FAF21 #21A6AF #7121AF #AF2A21
split-complementary
#5FAF21 #2A21AF #AF21A6
monochromatic
#27480E #437C17 #5FAF21 #7CD934 #9DE368

Accessibility & contrast

On white

2.75
#5FAF21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#5FAF21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5FAF21
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5FAF21#FFFFFF#000000##000000
##5FAF211.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#AB9A32
Tritanopia (blue-blind)
#5CA895
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #5faf21;
/* rgb */ color: rgb(95, 175, 33);
/* oklch */ color: oklch(67.7% 0.186 135.3);
Tailwind
colors: {
  custom: {
    50: '#94c769',
    500: '#5faf21',
    950: '#000000',
  },
}
SCSS
$custom: #5faf21;
$custom-light: #94c769;
$custom-dark: #000000;
JSON
{
  "hex": "#5faf21",
  "rgb": {
    "r": 95,
    "g": 175,
    "b": 33
  },
  "hsl": {
    "h": 93.803,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.67673,
    "c": 0.18584,
    "h": 135.3
  },
  "luminance": 0.33203
}

Semantic roles & 50–950 ramp

primary
#5FAF21
secondary
#9C64C8
accent
#3DEB9F
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0E1307
muted
#7E827A

Preview Lab

Preview with #5FAF21

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

Preview Lab → · Contrast checker → · Palette generator →

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