#5A8E22#5A8E22

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

Color values

HEX#5A8E22
RGBrgb(90, 142, 34)
HSLhsl(89, 61%, 35%)
HSVhsv(89, 76%, 56%)
CMYKcmyk(36.6%, 0%, 76.1%, 44.3%)
CIE-LABlab(53.64, -34.99, 48.72)
CIE-LCHlch(53.64, 59.98, 125.68°)
OKLaboklab(58.86% -0.0988 0.1089)
OKLCHoklch(58.86% 0.147 132.2)
XYZxyz(14.1780, 21.6346, 4.9419)
Luminance0.2163 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8E22 #56228E
analogous
#8E8C22 #5A8E22 #248E22
triadic
#5A8E22 #225A8E #8E225A
tetradic
#5A8E22 #228E8C #56228E #8E2224
square
#5A8E22 #228E8C #56228E #8E2224
split-complementary
#5A8E22 #22248E #8C228E
monochromatic
#1B2B0A #3B5D16 #5A8E22 #79BF2E #98D654

Accessibility & contrast

On white

3.94
#5A8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5A8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8E22
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8E22#FFFFFF#000000##000000
##5A8E221.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830B
Deuteranopia (green-blind)
#8D7F2D
Tritanopia (blue-blind)
#5B8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8e22;
/* rgb */ color: rgb(90, 142, 34);
/* oklch */ color: oklch(58.9% 0.147 132.2);
Tailwind
colors: {
  custom: {
    50: '#8daf65',
    500: '#5a8e22',
    950: '#000000',
  },
}
SCSS
$custom: #5a8e22;
$custom-light: #8daf65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8e22",
  "rgb": {
    "r": 90,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 88.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58856,
    "c": 0.147,
    "h": 132.2
  },
  "luminance": 0.21635
}

Semantic roles & 50–950 ramp

primary
#5A8E22
secondary
#8452BA
accent
#43E491
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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