#5F9222#5F9222

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

Color values

HEX#5F9222
RGBrgb(95, 146, 34)
HSLhsl(87, 62%, 35%)
HSVhsv(87, 77%, 57%)
CMYKcmyk(34.9%, 0%, 76.7%, 42.7%)
CIE-LABlab(55.18, -34.90, 50.32)
CIE-LCHlch(55.18, 61.24, 124.75°)
OKLaboklab(60.19% -0.0989 0.1121)
OKLCHoklch(60.19% 0.149 131.4)
XYZxyz(15.2868, 23.1056, 5.1674)
Luminance0.2311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9222 #552292
analogous
#928D22 #5F9222 #279222
triadic
#5F9222 #225F92 #92225F
tetradic
#5F9222 #22928D #552292 #922227
square
#5F9222 #22928D #552292 #922227
split-complementary
#5F9222 #222792 #8D2292
monochromatic
#1E2F0B #3F6016 #5F9222 #7FC42E #9DD857

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F9222#FFFFFF#000000##000000
##5F92221.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)
#998708
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#618C7D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f9222;
/* rgb */ color: rgb(95, 146, 34);
/* oklch */ color: oklch(60.2% 0.149 131.4);
Tailwind
colors: {
  custom: {
    50: '#91b266',
    500: '#5f9222',
    950: '#000000',
  },
}
SCSS
$custom: #5f9222;
$custom-light: #91b266;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9222",
  "rgb": {
    "r": 95,
    "g": 146,
    "b": 34
  },
  "hsl": {
    "h": 87.321,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60189,
    "c": 0.14947,
    "h": 131.4
  },
  "luminance": 0.23106
}

Semantic roles & 50–950 ramp

primary
#5F9222
secondary
#8354BC
accent
#43E58D
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9222

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

Preview Lab → · Contrast checker → · Palette generator →

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