#5F9221#5F9221

#5F9221 is a mid, vivid yellow-green. Relative luminance 0.231; OKLCH L 60.2% C 0.150 H 131.3°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5F9221
RGBrgb(95, 146, 33)
HSLhsl(87, 63%, 35%)
HSVhsv(87, 77%, 57%)
CMYKcmyk(34.9%, 0%, 77.4%, 42.7%)
CIE-LABlab(55.18, -34.96, 50.66)
CIE-LCHlch(55.18, 61.55, 124.61°)
OKLaboklab(60.18% -0.0991 0.1127)
OKLCHoklch(60.18% 0.15 131.3)
XYZxyz(15.2726, 23.0999, 5.0926)
Luminance0.2310 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9221 #542192
analogous
#928D21 #5F9221 #269221
triadic
#5F9221 #215F92 #92215F
tetradic
#5F9221 #21928D #542192 #922126
square
#5F9221 #21928D #542192 #922126
split-complementary
#5F9221 #212692 #8D2192
monochromatic
#1E2E0A #3F6016 #5F9221 #7FC42C #9DD955

Accessibility & contrast

On white

3.74
#5F9221 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#5F9221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9221
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9221#FFFFFF#000000##000000
##5F92211.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998706
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#618C7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f9221;
/* rgb */ color: rgb(95, 146, 33);
/* oklch */ color: oklch(60.2% 0.150 131.3);
Tailwind
colors: {
  custom: {
    50: '#91b265',
    500: '#5f9221',
    950: '#000000',
  },
}
SCSS
$custom: #5f9221;
$custom-light: #91b265;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9221",
  "rgb": {
    "r": 95,
    "g": 146,
    "b": 33
  },
  "hsl": {
    "h": 87.08,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60182,
    "c": 0.15005,
    "h": 131.3
  },
  "luminance": 0.231
}

Semantic roles & 50–950 ramp

primary
#5F9221
secondary
#8253BC
accent
#42E68C
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9221

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

Preview Lab → · Contrast checker → · Palette generator →

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