#5F9721#5F9721

#5F9721 is a mid, vivid yellow-green. Relative luminance 0.247; OKLCH L 61.5% C 0.156 H 132.2°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5F9721
RGBrgb(95, 151, 33)
HSLhsl(88, 64%, 36%)
HSVhsv(88, 78%, 59%)
CMYKcmyk(37.1%, 0%, 78.1%, 40.8%)
CIE-LABlab(56.76, -37.19, 52.17)
CIE-LCHlch(56.76, 64.06, 125.48°)
OKLaboklab(61.47% -0.1051 0.1158)
OKLCHoklch(61.47% 0.156 132.2)
XYZxyz(16.0602, 24.6752, 5.3551)
Luminance0.2468 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9721 #592197
analogous
#979421 #5F9721 #249721
triadic
#5F9721 #215F97 #97215F
tetradic
#5F9721 #219794 #592197 #972124
square
#5F9721 #219794 #592197 #972124
split-complementary
#5F9721 #212497 #942197
monochromatic
#20330B #3F6516 #5F9721 #7FC92C #9DDA58

Accessibility & contrast

On white

3.54
#5F9721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#5F9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9721
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9721#FFFFFF#000000##000000
##5F97211.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B02
Deuteranopia (green-blind)
#96872D
Tritanopia (blue-blind)
#609181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f9721;
/* rgb */ color: rgb(95, 151, 33);
/* oklch */ color: oklch(61.5% 0.156 132.2);
Tailwind
colors: {
  custom: {
    50: '#91b666',
    500: '#5f9721',
    950: '#000000',
  },
}
SCSS
$custom: #5f9721;
$custom-light: #91b666;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9721",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 88.475,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61474,
    "c": 0.15642,
    "h": 132.2
  },
  "luminance": 0.24676
}

Semantic roles & 50–950 ramp

primary
#5F9721
secondary
#8755BE
accent
#41E790
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9721

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

Preview Lab → · Contrast checker → · Palette generator →

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