#5A871E#5A871E

#5A871E is a mid, vivid yellow-green. Relative luminance 0.196; OKLCH L 57.0% C 0.140 H 130.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A871E
RGBrgb(90, 135, 30)
HSLhsl(86, 64%, 32%)
HSVhsv(86, 78%, 53%)
CMYKcmyk(33.3%, 0%, 77.8%, 47.1%)
CIE-LABlab(51.38, -32.04, 47.96)
CIE-LCHlch(51.38, 57.68, 123.75°)
OKLaboklab(57% -0.0911 0.1066)
OKLCHoklch(57% 0.14 130.5)
XYZxyz(13.1147, 19.5949, 4.3193)
Luminance0.1960 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A871E #4B1E87
analogous
#877F1E #5A871E #26871E
triadic
#5A871E #1E5A87 #871E5A
tetradic
#5A871E #1E877F #4B1E87 #871E26
square
#5A871E #1E877F #4B1E87 #871E26
split-complementary
#5A871E #1E2687 #7F1E87
monochromatic
#172308 #395513 #5A871E #7BB929 #9AD749

Accessibility & contrast

On white

4.27
#5A871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5A871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A871E
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A871E#FFFFFF#000000##000000
##5A871E1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D05
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a871e;
/* rgb */ color: rgb(90, 135, 30);
/* oklch */ color: oklch(57.0% 0.140 130.5);
Tailwind
colors: {
  custom: {
    50: '#8daa62',
    500: '#5a871e',
    950: '#000000',
  },
}
SCSS
$custom: #5a871e;
$custom-light: #8daa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a871e",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 85.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57004,
    "c": 0.14024,
    "h": 130.5
  },
  "luminance": 0.19595
}

Semantic roles & 50–950 ramp

primary
#5A871E
secondary
#7848B9
accent
#41E788
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A871E

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

Preview Lab → · Contrast checker → · Palette generator →

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