#5A8819#5A8819

#5A8819 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.2% C 0.144 H 130.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5A8819
RGBrgb(90, 136, 25)
HSLhsl(85, 69%, 32%)
HSVhsv(85, 82%, 53%)
CMYKcmyk(33.8%, 0%, 81.6%, 46.7%)
CIE-LABlab(51.67, -32.77, 49.88)
CIE-LCHlch(51.67, 59.68, 123.31°)
OKLaboklab(57.23% -0.0934 0.1098)
OKLCHoklch(57.23% 0.144 130.4)
XYZxyz(13.1960, 19.8517, 4.0560)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8819 #471988
analogous
#887F19 #5A8819 #238819
triadic
#5A8819 #195A88 #88195A
tetradic
#5A8819 #19887F #471988 #881923
square
#5A8819 #19887F #471988 #881923
split-complementary
#5A8819 #192388 #7F1988
monochromatic
#162106 #38540F #5A8819 #7CBC23 #9BDC40

Accessibility & contrast

On white

4.23
#5A8819 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5A8819 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8819
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8819#FFFFFF#000000##000000
##5A88191.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a8819;
/* rgb */ color: rgb(90, 136, 25);
/* oklch */ color: oklch(57.2% 0.144 130.4);
Tailwind
colors: {
  custom: {
    50: '#8dab60',
    500: '#5a8819',
    950: '#000000',
  },
}
SCSS
$custom: #5a8819;
$custom-light: #8dab60;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8819",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 25
  },
  "hsl": {
    "h": 84.865,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57234,
    "c": 0.1442,
    "h": 130.4
  },
  "luminance": 0.19852
}

Semantic roles & 50–950 ramp

primary
#5A8819
secondary
#7441BB
accent
#3CEC85
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8819

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

Preview Lab → · Contrast checker → · Palette generator →

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