#5F9722#5F9722

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

Color values

HEX#5F9722
RGBrgb(95, 151, 34)
HSLhsl(89, 63%, 36%)
HSVhsv(89, 77%, 59%)
CMYKcmyk(37.1%, 0%, 77.5%, 40.8%)
CIE-LABlab(56.76, -37.13, 51.84)
CIE-LCHlch(56.76, 63.76, 125.61°)
OKLaboklab(61.48% -0.1049 0.1153)
OKLCHoklch(61.48% 0.156 132.3)
XYZxyz(16.0745, 24.6809, 5.4300)
Luminance0.2468 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9722 #5A2297
analogous
#979522 #5F9722 #259722
triadic
#5F9722 #225F97 #97225F
tetradic
#5F9722 #229795 #5A2297 #972225
square
#5F9722 #229795 #5A2297 #972225
split-complementary
#5F9722 #222597 #952297
monochromatic
#20330C #406517 #5F9722 #7EC92D #9CDA5A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F9722#FFFFFF#000000##000000
##5F97221.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)
#9E8B05
Deuteranopia (green-blind)
#96872E
Tritanopia (blue-blind)
#609181
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5f9722;
/* rgb */ color: rgb(95, 151, 34);
/* oklch */ color: oklch(61.5% 0.156 132.3);
Tailwind
colors: {
  custom: {
    50: '#91b667',
    500: '#5f9722',
    950: '#000000',
  },
}
SCSS
$custom: #5f9722;
$custom-light: #91b667;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9722",
  "rgb": {
    "r": 95,
    "g": 151,
    "b": 34
  },
  "hsl": {
    "h": 88.718,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61481,
    "c": 0.15587,
    "h": 132.3
  },
  "luminance": 0.24682
}

Semantic roles & 50–950 ramp

primary
#5F9722
secondary
#8857BE
accent
#42E690
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9722

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

Preview Lab → · Contrast checker → · Palette generator →

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