#5A971D#5A971D

#5A971D is a mid, vivid yellow-green. Relative luminance 0.244; OKLCH L 61.2% C 0.161 H 133.3°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5A971D
RGBrgb(90, 151, 29)
HSLhsl(90, 68%, 35%)
HSVhsv(90, 81%, 59%)
CMYKcmyk(40.4%, 0%, 80.8%, 40.8%)
CIE-LABlab(56.48, -39.22, 53.09)
CIE-LCHlch(56.48, 66.01, 126.45°)
OKLaboklab(61.17% -0.1105 0.1173)
OKLCHoklch(61.17% 0.161 133.3)
XYZxyz(15.5046, 24.3948, 5.0539)
Luminance0.2440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A971D #5A1D97
analogous
#97971D #5A971D #1D971D
triadic
#5A971D #1D5A97 #971D5A
tetradic
#5A971D #1D9797 #5A1D97 #971D1D
square
#5A971D #1D9797 #5A1D97 #971D1D
split-complementary
#5A971D #1D1D97 #971D97
monochromatic
#1D3009 #3B6413 #5A971D #79CA27 #97DE51

Accessibility & contrast

On white

3.57
#5A971D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#5A971D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A971D
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A971D#FFFFFF#000000##000000
##5A971D1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B00
Deuteranopia (green-blind)
#95862B
Tritanopia (blue-blind)
#5A9181
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a971d;
/* rgb */ color: rgb(90, 151, 29);
/* oklch */ color: oklch(61.2% 0.161 133.3);
Tailwind
colors: {
  custom: {
    50: '#8eb664',
    500: '#5a971d',
    950: '#000000',
  },
}
SCSS
$custom: #5a971d;
$custom-light: #8eb664;
$custom-dark: #000000;
JSON
{
  "hex": "#5a971d",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 90,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61173,
    "c": 0.16114,
    "h": 133.3
  },
  "luminance": 0.24396
}

Semantic roles & 50–950 ramp

primary
#5A971D
secondary
#884FC0
accent
#3DEB94
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A971D

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

Preview Lab → · Contrast checker → · Palette generator →

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