#5F9822#5F9822

#5F9822 is a mid, vivid yellow-green. Relative luminance 0.250; OKLCH L 61.7% C 0.157 H 132.5°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F9822
RGBrgb(95, 152, 34)
HSLhsl(89, 63%, 36%)
HSVhsv(89, 78%, 60%)
CMYKcmyk(37.5%, 0%, 77.6%, 40.4%)
CIE-LABlab(57.08, -37.57, 52.14)
CIE-LCHlch(57.08, 64.27, 125.77°)
OKLaboklab(61.74% -0.1061 0.1159)
OKLCHoklch(61.74% 0.157 132.5)
XYZxyz(16.2361, 25.0042, 5.4839)
Luminance0.2500 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9822 #5B2298
analogous
#989622 #5F9822 #249822
triadic
#5F9822 #225F98 #98225F
tetradic
#5F9822 #229896 #5B2298 #982224
square
#5F9822 #229896 #5B2298 #982224
split-complementary
#5F9822 #222498 #962298
monochromatic
#20340C #406617 #5F9822 #7ECA2D #9CDA5A

Accessibility & contrast

On white

3.50
#5F9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#5F9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9822
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9822#FFFFFF#000000##000000
##5F98221.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C04
Deuteranopia (green-blind)
#97872E
Tritanopia (blue-blind)
#609282
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #5f9822;
/* rgb */ color: rgb(95, 152, 34);
/* oklch */ color: oklch(61.7% 0.157 132.5);
Tailwind
colors: {
  custom: {
    50: '#91b667',
    500: '#5f9822',
    950: '#000000',
  },
}
SCSS
$custom: #5f9822;
$custom-light: #91b667;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9822",
  "rgb": {
    "r": 95,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 88.983,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61739,
    "c": 0.15714,
    "h": 132.5
  },
  "luminance": 0.25005
}

Semantic roles & 50–950 ramp

primary
#5F9822
secondary
#8957BE
accent
#41E691
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9822

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

Preview Lab → · Contrast checker → · Palette generator →

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