#5A8A22#5A8A22

#5A8A22 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.8% C 0.142 H 131.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5A8A22
RGBrgb(90, 138, 34)
HSLhsl(88, 60%, 34%)
HSVhsv(88, 75%, 54%)
CMYKcmyk(34.8%, 0%, 75.4%, 45.9%)
CIE-LABlab(52.36, -33.18, 47.47)
CIE-LCHlch(52.36, 57.91, 124.95°)
OKLaboklab(57.81% -0.0939 0.1063)
OKLCHoklch(57.81% 0.142 131.5)
XYZxyz(13.5935, 20.4656, 4.7471)
Luminance0.2047 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A22 #52228A
analogous
#8A8622 #5A8A22 #268A22
triadic
#5A8A22 #225A8A #8A225A
tetradic
#5A8A22 #228A86 #52228A #8A2226
square
#5A8A22 #228A86 #52228A #8A2226
split-complementary
#5A8A22 #22268A #86228A
monochromatic
#1A280A #3A5916 #5A8A22 #7ABB2E #98D452

Accessibility & contrast

On white

4.12
#5A8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8A22#FFFFFF#000000##000000
##5A8A221.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a8a22;
/* rgb */ color: rgb(90, 138, 34);
/* oklch */ color: oklch(57.8% 0.142 131.5);
Tailwind
colors: {
  custom: {
    50: '#8dac65',
    500: '#5a8a22',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a22;
$custom-light: #8dac65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a22",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 87.692,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57814,
    "c": 0.14177,
    "h": 131.5
  },
  "luminance": 0.20466
}

Semantic roles & 50–950 ramp

primary
#5A8A22
secondary
#8050B8
accent
#44E48E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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