#5A871F#5A871F

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

Color values

HEX#5A871F
RGBrgb(90, 135, 31)
HSLhsl(86, 63%, 33%)
HSVhsv(86, 77%, 53%)
CMYKcmyk(33.3%, 0%, 77%, 47.1%)
CIE-LABlab(51.38, -31.98, 47.61)
CIE-LCHlch(51.38, 57.35, 123.89°)
OKLaboklab(57.01% -0.0909 0.1061)
OKLCHoklch(57.01% 0.14 130.6)
XYZxyz(13.1277, 19.6001, 4.3876)
Luminance0.1960 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A871F #4C1F87
analogous
#87801F #5A871F #26871F
triadic
#5A871F #1F5A87 #871F5A
tetradic
#5A871F #1F8780 #4C1F87 #871F26
square
#5A871F #1F8780 #4C1F87 #871F26
split-complementary
#5A871F #1F2687 #801F87
monochromatic
#182308 #395514 #5A871F #7BB92A #9AD64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A871F#FFFFFF#000000##000000
##5A871F1.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)
#8D7D08
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#5C8173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a871f;
/* rgb */ color: rgb(90, 135, 31);
/* oklch */ color: oklch(57.0% 0.140 130.6);
Tailwind
colors: {
  custom: {
    50: '#8daa63',
    500: '#5a871f',
    950: '#000000',
  },
}
SCSS
$custom: #5a871f;
$custom-light: #8daa63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a871f",
  "rgb": {
    "r": 90,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 85.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57011,
    "c": 0.13966,
    "h": 130.6
  },
  "luminance": 0.19601
}

Semantic roles & 50–950 ramp

primary
#5A871F
secondary
#794AB8
accent
#42E689
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A871F

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

Preview Lab → · Contrast checker → · Palette generator →

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