#5A8022#5A8022

#5A8022 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.128 H 129.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5A8022
RGBrgb(90, 128, 34)
HSLhsl(84, 58%, 32%)
HSVhsv(84, 73%, 50%)
CMYKcmyk(29.7%, 0%, 73.4%, 49.8%)
CIE-LABlab(49.16, -28.49, 44.29)
CIE-LCHlch(49.16, 52.66, 122.75°)
OKLaboklab(55.21% -0.0811 0.0996)
OKLCHoklch(55.21% 0.128 129.2)
XYZxyz(12.2243, 17.7272, 4.2907)
Luminance0.1773 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8022 #482280
analogous
#807722 #5A8022 #2B8022
triadic
#5A8022 #225A80 #80225A
tetradic
#5A8022 #228077 #482280 #80222B
square
#5A8022 #228077 #482280 #80222B
split-complementary
#5A8022 #222B80 #772280
monochromatic
#161F08 #385015 #5A8022 #7CB02F #9BD04D

Accessibility & contrast

On white

4.62
#5A8022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5A8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A8022
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8022#FFFFFF#000000##FFFFFF
##5A80221.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867712
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#5D7A6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8022;
/* rgb */ color: rgb(90, 128, 34);
/* oklch */ color: oklch(55.2% 0.128 129.2);
Tailwind
colors: {
  custom: {
    50: '#8ca564',
    500: '#5a8022',
    950: '#000000',
  },
}
SCSS
$custom: #5a8022;
$custom-light: #8ca564;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8022",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 84.255,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55211,
    "c": 0.12845,
    "h": 129.2
  },
  "luminance": 0.17727
}

Semantic roles & 50–950 ramp

primary
#5A8022
secondary
#754BB2
accent
#47E185
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A8022

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

Preview Lab → · Contrast checker → · Palette generator →

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