#5A841D#5A841D

#5A841D is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.2% C 0.137 H 129.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5A841D
RGBrgb(90, 132, 29)
HSLhsl(84, 64%, 32%)
HSVhsv(84, 78%, 52%)
CMYKcmyk(31.8%, 0%, 78%, 48.2%)
CIE-LABlab(50.41, -30.71, 47.38)
CIE-LCHlch(50.41, 56.46, 122.95°)
OKLaboklab(56.22% -0.0875 0.1053)
OKLCHoklch(56.22% 0.137 129.7)
XYZxyz(12.6894, 18.7645, 4.1155)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A841D #471D84
analogous
#847B1D #5A841D #27841D
triadic
#5A841D #1D5A84 #841D5A
tetradic
#5A841D #1D847B #471D84 #841D27
square
#5A841D #1D847B #471D84 #841D27
split-complementary
#5A841D #1D2784 #7B1D84
monochromatic
#162007 #385212 #5A841D #7CB628 #9BD645

Accessibility & contrast

On white

4.42
#5A841D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5A841D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A841D
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A841D#FFFFFF#000000##000000
##5A841D1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A05
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#5D7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a841d;
/* rgb */ color: rgb(90, 132, 29);
/* oklch */ color: oklch(56.2% 0.137 129.7);
Tailwind
colors: {
  custom: {
    50: '#8da862',
    500: '#5a841d',
    950: '#000000',
  },
}
SCSS
$custom: #5a841d;
$custom-light: #8da862;
$custom-dark: #000000;
JSON
{
  "hex": "#5a841d",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 84.466,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56215,
    "c": 0.1369,
    "h": 129.7
  },
  "luminance": 0.18765
}

Semantic roles & 50–950 ramp

primary
#5A841D
secondary
#7446B7
accent
#41E785
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A841D

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

Preview Lab → · Contrast checker → · Palette generator →

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