#5D8A22#5D8A22

#5D8A22 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.0% C 0.140 H 130.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5D8A22
RGBrgb(93, 138, 34)
HSLhsl(86, 60%, 34%)
HSVhsv(86, 75%, 54%)
CMYKcmyk(32.6%, 0%, 75.4%, 45.9%)
CIE-LABlab(52.53, -32.02, 47.70)
CIE-LCHlch(52.53, 57.44, 123.87°)
OKLaboklab(58% -0.0909 0.1067)
OKLCHoklch(58% 0.14 130.4)
XYZxyz(13.8913, 20.6192, 4.7611)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8A22 #4F228A
analogous
#8A8322 #5D8A22 #298A22
triadic
#5D8A22 #225D8A #8A225D
tetradic
#5D8A22 #228A83 #4F228A #8A2229
square
#5D8A22 #228A83 #4F228A #8A2229
split-complementary
#5D8A22 #22298A #83228A
monochromatic
#1B280A #3C5916 #5D8A22 #7EBB2E #9CD452

Accessibility & contrast

On white

4.10
#5D8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5D8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8A22
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8A22#FFFFFF#000000##000000
##5D8A221.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#5F8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5d8a22;
/* rgb */ color: rgb(93, 138, 34);
/* oklch */ color: oklch(58.0% 0.140 130.4);
Tailwind
colors: {
  custom: {
    50: '#8fac65',
    500: '#5d8a22',
    950: '#000000',
  },
}
SCSS
$custom: #5d8a22;
$custom-light: #8fac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8a22",
  "rgb": {
    "r": 93,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 85.962,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57998,
    "c": 0.14014,
    "h": 130.4
  },
  "luminance": 0.2062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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