#5A8A1D#5A8A1D

#5A8A1D is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.8% C 0.145 H 131.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5A8A1D
RGBrgb(90, 138, 29)
HSLhsl(86, 65%, 33%)
HSVhsv(86, 79%, 54%)
CMYKcmyk(34.8%, 0%, 79%, 45.9%)
CIE-LABlab(52.33, -33.48, 49.21)
CIE-LCHlch(52.33, 59.51, 124.23°)
OKLaboklab(57.78% -0.095 0.1091)
OKLCHoklch(57.78% 0.145 131.1)
XYZxyz(13.5266, 20.4388, 4.3946)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A1D #4D1D8A
analogous
#8A831D #5A8A1D #248A1D
triadic
#5A8A1D #1D5A8A #8A1D5A
tetradic
#5A8A1D #1D8A83 #4D1D8A #8A1D24
square
#5A8A1D #1D8A83 #4D1D8A #8A1D24
split-complementary
#5A8A1D #1D248A #831D8A
monochromatic
#182508 #395712 #5A8A1D #7BBD28 #99D949

Accessibility & contrast

On white

4.13
#5A8A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5A8A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A1D
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A1D#FFFFFF#000000##000000
##5A8A1D1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F01
Deuteranopia (green-blind)
#8A7C28
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a1d;
/* rgb */ color: rgb(90, 138, 29);
/* oklch */ color: oklch(57.8% 0.145 131.1);
Tailwind
colors: {
  custom: {
    50: '#8dac62',
    500: '#5a8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a1d;
$custom-light: #8dac62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a1d",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 86.422,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5778,
    "c": 0.14469,
    "h": 131.1
  },
  "luminance": 0.20439
}

Semantic roles & 50–950 ramp

primary
#5A8A1D
secondary
#7B48BB
accent
#40E88A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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