#5A871C#5A871C

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

Color values

HEX#5A871C
RGBrgb(90, 135, 28)
HSLhsl(85, 66%, 32%)
HSVhsv(85, 79%, 53%)
CMYKcmyk(33.3%, 0%, 79.3%, 47.1%)
CIE-LABlab(51.36, -32.16, 48.63)
CIE-LCHlch(51.36, 58.30, 123.48°)
OKLaboklab(56.99% -0.0916 0.1077)
OKLCHoklch(56.99% 0.141 130.4)
XYZxyz(13.0899, 19.5850, 4.1890)
Luminance0.1958 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A871C #491C87
analogous
#877F1C #5A871C #24871C
triadic
#5A871C #1C5A87 #871C5A
tetradic
#5A871C #1C877F #491C87 #871C24
square
#5A871C #1C877F #491C87 #871C24
split-complementary
#5A871C #1C2487 #7F1C87
monochromatic
#162207 #385411 #5A871C #7CBA27 #9AD845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A871C#FFFFFF#000000##000000
##5A871C1.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)
#8D7D01
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a871c;
/* rgb */ color: rgb(90, 135, 28);
/* oklch */ color: oklch(57.0% 0.141 130.4);
Tailwind
colors: {
  custom: {
    50: '#8daa62',
    500: '#5a871c',
    950: '#000000',
  },
}
SCSS
$custom: #5a871c;
$custom-light: #8daa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a871c",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 85.234,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56991,
    "c": 0.14136,
    "h": 130.4
  },
  "luminance": 0.19585
}

Semantic roles & 50–950 ramp

primary
#5A871C
secondary
#7645BA
accent
#3FE986
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A871C

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

Preview Lab → · Contrast checker → · Palette generator →

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