#5A8D1D#5A8D1D

#5A8D1D is a mid, vivid yellow-green. Relative luminance 0.213; OKLCH L 58.6% C 0.149 H 131.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5A8D1D
RGBrgb(90, 141, 29)
HSLhsl(87, 66%, 33%)
HSVhsv(87, 79%, 55%)
CMYKcmyk(36.2%, 0%, 79.4%, 44.7%)
CIE-LABlab(53.29, -34.83, 50.11)
CIE-LCHlch(53.29, 61.03, 124.80°)
OKLaboklab(58.56% -0.0987 0.111)
OKLCHoklch(58.56% 0.149 131.7)
XYZxyz(13.9630, 21.3116, 4.5400)
Luminance0.2131 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8D1D #501D8D
analogous
#8D881D #5A8D1D #228D1D
triadic
#5A8D1D #1D5A8D #8D1D5A
tetradic
#5A8D1D #1D8D88 #501D8D #8D1D22
square
#5A8D1D #1D8D88 #501D8D #8D1D22
split-complementary
#5A8D1D #1D228D #881D8D
monochromatic
#192708 #3A5A13 #5A8D1D #7AC027 #99DA4B

Accessibility & contrast

On white

3.99
#5A8D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#5A8D1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8D1D
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8D1D#FFFFFF#000000##000000
##5A8D1D1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#8C7E29
Tritanopia (blue-blind)
#5B8778
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a8d1d;
/* rgb */ color: rgb(90, 141, 29);
/* oklch */ color: oklch(58.6% 0.149 131.7);
Tailwind
colors: {
  custom: {
    50: '#8dae63',
    500: '#5a8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #5a8d1d;
$custom-light: #8dae63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8d1d",
  "rgb": {
    "r": 90,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 87.321,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58562,
    "c": 0.14854,
    "h": 131.7
  },
  "luminance": 0.21312
}

Semantic roles & 50–950 ramp

primary
#5A8D1D
secondary
#7E4ABC
accent
#3FE98C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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