#5A841E#5A841E

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

Color values

HEX#5A841E
RGBrgb(90, 132, 30)
HSLhsl(85, 63%, 32%)
HSVhsv(85, 77%, 52%)
CMYKcmyk(31.8%, 0%, 77.3%, 48.2%)
CIE-LABlab(50.42, -30.65, 47.03)
CIE-LCHlch(50.42, 56.14, 123.09°)
OKLaboklab(56.22% -0.0873 0.1047)
OKLCHoklch(56.22% 0.136 129.8)
XYZxyz(12.7020, 18.7695, 4.1817)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A841E #481E84
analogous
#847B1E #5A841E #27841E
triadic
#5A841E #1E5A84 #841E5A
tetradic
#5A841E #1E847B #481E84 #841E27
square
#5A841E #1E847B #481E84 #841E27
split-complementary
#5A841E #1E2784 #7B1E84
monochromatic
#162007 #385213 #5A841E #7CB629 #9BD547

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A841E#FFFFFF#000000##000000
##5A841E1.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)
#8A7A07
Deuteranopia (green-blind)
#857728
Tritanopia (blue-blind)
#5D7E71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a841e;
/* rgb */ color: rgb(90, 132, 30);
/* oklch */ color: oklch(56.2% 0.136 129.8);
Tailwind
colors: {
  custom: {
    50: '#8ca862',
    500: '#5a841e',
    950: '#000000',
  },
}
SCSS
$custom: #5a841e;
$custom-light: #8ca862;
$custom-dark: #000000;
JSON
{
  "hex": "#5a841e",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 30
  },
  "hsl": {
    "h": 84.706,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56222,
    "c": 0.13633,
    "h": 129.8
  },
  "luminance": 0.1877
}

Semantic roles & 50–950 ramp

primary
#5A841E
secondary
#7547B7
accent
#42E685
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #5A841E

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

Preview Lab → · Contrast checker → · Palette generator →

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