#5A8221#5A8221

#5A8221 is a mid, vivid yellow-green. Relative luminance 0.182; OKLCH L 55.7% C 0.132 H 129.6°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5A8221
RGBrgb(90, 130, 33)
HSLhsl(85, 60%, 32%)
HSVhsv(85, 75%, 51%)
CMYKcmyk(30.8%, 0%, 74.6%, 49%)
CIE-LABlab(49.80, -29.51, 45.31)
CIE-LCHlch(49.80, 54.08, 123.08°)
OKLaboklab(55.72% -0.084 0.1016)
OKLCHoklch(55.72% 0.132 129.6)
XYZxyz(12.4735, 18.2484, 4.3036)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8221 #492182
analogous
#827A21 #5A8221 #2A8221
triadic
#5A8221 #215A82 #82215A
tetradic
#5A8221 #21827A #492182 #82212A
square
#5A8221 #21827A #492182 #82212A
split-complementary
#5A8221 #212A82 #7A2182
monochromatic
#162008 #385115 #5A8221 #7CB32D #9AD24C

Accessibility & contrast

On white

4.52
#5A8221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5A8221 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8221
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8221#FFFFFF#000000##000000
##5A82211.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780F
Deuteranopia (green-blind)
#83752A
Tritanopia (blue-blind)
#5D7C6F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5a8221;
/* rgb */ color: rgb(90, 130, 33);
/* oklch */ color: oklch(55.7% 0.132 129.6);
Tailwind
colors: {
  custom: {
    50: '#8ca663',
    500: '#5a8221',
    950: '#000000',
  },
}
SCSS
$custom: #5a8221;
$custom-light: #8ca663;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8221",
  "rgb": {
    "r": 90,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 84.742,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55723,
    "c": 0.1318,
    "h": 129.6
  },
  "luminance": 0.18249
}

Semantic roles & 50–950 ramp

primary
#5A8221
secondary
#764AB4
accent
#45E386
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A8221

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

Preview Lab → · Contrast checker → · Palette generator →

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