#5A8722#5A8722

#5A8722 is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 57.0% C 0.138 H 130.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A8722
RGBrgb(90, 135, 34)
HSLhsl(87, 60%, 33%)
HSVhsv(87, 75%, 53%)
CMYKcmyk(33.3%, 0%, 74.8%, 47.1%)
CIE-LABlab(51.40, -31.79, 46.52)
CIE-LCHlch(51.40, 56.35, 124.35°)
OKLaboklab(57.03% -0.0901 0.1043)
OKLCHoklch(57.03% 0.138 130.8)
XYZxyz(13.1691, 19.6166, 4.6056)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8722 #4F2287
analogous
#878122 #5A8722 #278722
triadic
#5A8722 #225A87 #87225A
tetradic
#5A8722 #228781 #4F2287 #872227
square
#5A8722 #228781 #4F2287 #872227
split-complementary
#5A8722 #222787 #812287
monochromatic
#192509 #395616 #5A8722 #7BB82E #99D350

Accessibility & contrast

On white

4.27
#5A8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5A8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8722
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8722#FFFFFF#000000##000000
##5A87221.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0F
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a8722;
/* rgb */ color: rgb(90, 135, 34);
/* oklch */ color: oklch(57.0% 0.138 130.8);
Tailwind
colors: {
  custom: {
    50: '#8daa64',
    500: '#5a8722',
    950: '#000000',
  },
}
SCSS
$custom: #5a8722;
$custom-light: #8daa64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8722",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 86.733,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57032,
    "c": 0.13781,
    "h": 130.8
  },
  "luminance": 0.19617
}

Semantic roles & 50–950 ramp

primary
#5A8722
secondary
#7D4EB7
accent
#45E38B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8722

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

Preview Lab → · Contrast checker → · Palette generator →

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