#5F8D22#5F8D22

#5F8D22 is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.143 H 130.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5F8D22
RGBrgb(95, 141, 34)
HSLhsl(86, 61%, 34%)
HSVhsv(86, 76%, 55%)
CMYKcmyk(32.6%, 0%, 75.9%, 44.7%)
CIE-LABlab(53.60, -32.62, 48.78)
CIE-LCHlch(53.60, 58.68, 123.77°)
OKLaboklab(58.9% -0.0927 0.1089)
OKLCHoklch(58.9% 0.143 130.4)
XYZxyz(14.5328, 21.5977, 4.9161)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D22 #50228D
analogous
#8D8622 #5F8D22 #2A8D22
triadic
#5F8D22 #225F8D #8D225F
tetradic
#5F8D22 #228D86 #50228D #8D222A
square
#5F8D22 #228D86 #50228D #8D222A
split-complementary
#5F8D22 #222A8D #86228D
monochromatic
#1D2A0A #3E5C16 #5F8D22 #80BE2E #9ED654

Accessibility & contrast

On white

3.95
#5F8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5F8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D22
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D22#FFFFFF#000000##000000
##5F8D221.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94820C
Deuteranopia (green-blind)
#8D7F2C
Tritanopia (blue-blind)
#618779
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d22;
/* rgb */ color: rgb(95, 141, 34);
/* oklch */ color: oklch(58.9% 0.143 130.4);
Tailwind
colors: {
  custom: {
    50: '#90ae65',
    500: '#5f8d22',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d22;
$custom-light: #90ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d22",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 85.794,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58898,
    "c": 0.14299,
    "h": 130.4
  },
  "luminance": 0.21598
}

Semantic roles & 50–950 ramp

primary
#5F8D22
secondary
#7E51B9
accent
#44E489
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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