#5A871D#5A871D

#5A871D 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#5A871D
RGBrgb(90, 135, 29)
HSLhsl(85, 65%, 32%)
HSVhsv(85, 79%, 53%)
CMYKcmyk(33.3%, 0%, 78.5%, 47.1%)
CIE-LABlab(51.37, -32.10, 48.30)
CIE-LCHlch(51.37, 57.99, 123.61°)
OKLaboklab(57% -0.0913 0.1072)
OKLCHoklch(57% 0.141 130.4)
XYZxyz(13.1021, 19.5899, 4.2531)
Luminance0.1959 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A871D #4A1D87
analogous
#877F1D #5A871D #25871D
triadic
#5A871D #1D5A87 #871D5A
tetradic
#5A871D #1D877F #4A1D87 #871D25
square
#5A871D #1D877F #4A1D87 #871D25
split-complementary
#5A871D #1D2587 #7F1D87
monochromatic
#172207 #385512 #5A871D #7CB928 #9AD747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A871D#FFFFFF#000000##000000
##5A871D1.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)
#8D7D03
Deuteranopia (green-blind)
#877928
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a871d;
/* rgb */ color: rgb(90, 135, 29);
/* oklch */ color: oklch(57.0% 0.141 130.4);
Tailwind
colors: {
  custom: {
    50: '#8daa62',
    500: '#5a871d',
    950: '#000000',
  },
}
SCSS
$custom: #5a871d;
$custom-light: #8daa62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a871d",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 85.472,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56997,
    "c": 0.14081,
    "h": 130.4
  },
  "luminance": 0.1959
}

Semantic roles & 50–950 ramp

primary
#5A871D
secondary
#7746B9
accent
#40E887
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1005
muted
#7D7F7A

Preview Lab

Preview with #5A871D

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

Preview Lab → · Contrast checker → · Palette generator →

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