#5A8823#5A8823

#5A8823 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.3% C 0.138 H 131.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5A8823
RGBrgb(90, 136, 35)
HSLhsl(87, 59%, 34%)
HSVhsv(87, 74%, 53%)
CMYKcmyk(33.8%, 0%, 74.3%, 46.7%)
CIE-LABlab(51.73, -32.19, 46.47)
CIE-LCHlch(51.73, 56.53, 124.71°)
OKLaboklab(57.3% -0.0911 0.1043)
OKLCHoklch(57.3% 0.138 131.1)
XYZxyz(13.3239, 19.9029, 4.7294)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8823 #512388
analogous
#888323 #5A8823 #278823
triadic
#5A8823 #235A88 #88235A
tetradic
#5A8823 #238883 #512388 #882327
square
#5A8823 #238883 #512388 #882327
split-complementary
#5A8823 #232788 #832388
monochromatic
#1A270A #3A5716 #5A8823 #7AB930 #98D353

Accessibility & contrast

On white

4.22
#5A8823 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5A8823 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8823
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8823#FFFFFF#000000##000000
##5A88231.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E11
Deuteranopia (green-blind)
#887A2C
Tritanopia (blue-blind)
#5C8274
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8823;
/* rgb */ color: rgb(90, 136, 35);
/* oklch */ color: oklch(57.3% 0.138 131.1);
Tailwind
colors: {
  custom: {
    50: '#8dab65',
    500: '#5a8823',
    950: '#000000',
  },
}
SCSS
$custom: #5a8823;
$custom-light: #8dab65;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8823",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 35
  },
  "hsl": {
    "h": 87.327,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.573,
    "c": 0.13849,
    "h": 131.1
  },
  "luminance": 0.19903
}

Semantic roles & 50–950 ramp

primary
#5A8823
secondary
#7F50B7
accent
#46E28D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8823

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

Preview Lab → · Contrast checker → · Palette generator →

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