#5A891F#5A891F

#5A891F is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.5% C 0.142 H 131.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5A891F
RGBrgb(90, 137, 31)
HSLhsl(87, 63%, 33%)
HSVhsv(87, 77%, 54%)
CMYKcmyk(34.3%, 0%, 77.4%, 46.3%)
CIE-LABlab(52.02, -32.90, 48.23)
CIE-LCHlch(52.02, 58.38, 124.31°)
OKLaboklab(57.53% -0.0933 0.1074)
OKLCHoklch(57.53% 0.142 131)
XYZxyz(13.4093, 20.1634, 4.4815)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A891F #4E1F89
analogous
#89831F #5A891F #25891F
triadic
#5A891F #1F5A89 #891F5A
tetradic
#5A891F #1F8983 #4E1F89 #891F25
square
#5A891F #1F8983 #4E1F89 #891F25
split-complementary
#5A891F #1F2589 #831F89
monochromatic
#182508 #395714 #5A891F #7BBB2A #99D64C

Accessibility & contrast

On white

4.17
#5A891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#5A891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A891F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A891F#FFFFFF#000000##000000
##5A891F1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E07
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#5C8375
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a891f;
/* rgb */ color: rgb(90, 137, 31);
/* oklch */ color: oklch(57.5% 0.142 131.0);
Tailwind
colors: {
  custom: {
    50: '#8dab63',
    500: '#5a891f',
    950: '#000000',
  },
}
SCSS
$custom: #5a891f;
$custom-light: #8dab63;
$custom-dark: #000000;
JSON
{
  "hex": "#5a891f",
  "rgb": {
    "r": 90,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 86.604,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57532,
    "c": 0.14227,
    "h": 131
  },
  "luminance": 0.20164
}

Semantic roles & 50–950 ramp

primary
#5A891F
secondary
#7C4BB9
accent
#42E68B
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0D1006
muted
#7D7F7A

Preview Lab

Preview with #5A891F

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

Preview Lab → · Contrast checker → · Palette generator →

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