#5F8922#5F8922

#5F8922 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.9% C 0.138 H 129.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5F8922
RGBrgb(95, 137, 34)
HSLhsl(84, 60%, 34%)
HSVhsv(84, 75%, 54%)
CMYKcmyk(30.7%, 0%, 75.2%, 46.3%)
CIE-LABlab(52.33, -30.76, 47.54)
CIE-LCHlch(52.33, 56.62, 122.91°)
OKLaboklab(57.87% -0.0876 0.1063)
OKLCHoklch(57.87% 0.138 129.5)
XYZxyz(13.9537, 20.4393, 4.7231)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8922 #4C2289
analogous
#897F22 #5F8922 #2B8922
triadic
#5F8922 #225F89 #89225F
tetradic
#5F8922 #22897F #4C2289 #89222B
square
#5F8922 #22897F #4C2289 #89222B
split-complementary
#5F8922 #222B89 #7F2289
monochromatic
#1B270A #3D5816 #5F8922 #81BA2E #9FD451

Accessibility & contrast

On white

4.13
#5F8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5F8922 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8922
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8922#FFFFFF#000000##000000
##5F89221.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0E
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#628375
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f8922;
/* rgb */ color: rgb(95, 137, 34);
/* oklch */ color: oklch(57.9% 0.138 129.5);
Tailwind
colors: {
  custom: {
    50: '#90ab65',
    500: '#5f8922',
    950: '#000000',
  },
}
SCSS
$custom: #5f8922;
$custom-light: #90ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8922",
  "rgb": {
    "r": 95,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 84.466,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57866,
    "c": 0.13775,
    "h": 129.5
  },
  "luminance": 0.2044
}

Semantic roles & 50–950 ramp

primary
#5F8922
secondary
#7A4FB8
accent
#44E385
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8922

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

Preview Lab → · Contrast checker → · Palette generator →

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