#5A971A#5A971A

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

Color values

HEX#5A971A
RGBrgb(90, 151, 26)
HSLhsl(89, 71%, 35%)
HSVhsv(89, 83%, 59%)
CMYKcmyk(40.4%, 0%, 82.8%, 40.8%)
CIE-LABlab(56.47, -39.37, 53.96)
CIE-LCHlch(56.47, 66.79, 126.11°)
OKLaboklab(61.16% -0.1111 0.1186)
OKLCHoklch(61.16% 0.163 133.1)
XYZxyz(15.4693, 24.3807, 4.8679)
Luminance0.2438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A971A #571A97
analogous
#97961A #5A971A #1C971A
triadic
#5A971A #1A5A97 #971A5A
tetradic
#5A971A #1A9796 #571A97 #971A1C
square
#5A971A #1A9796 #571A97 #971A1C
split-complementary
#5A971A #1A1C97 #961A97
monochromatic
#1C2F08 #3B6311 #5A971A #79CB23 #97E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A971A#FFFFFF#000000##000000
##5A971A1.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)
#9D8A00
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#5A9180
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a971a;
/* rgb */ color: rgb(90, 151, 26);
/* oklch */ color: oklch(61.2% 0.163 133.1);
Tailwind
colors: {
  custom: {
    50: '#8eb663',
    500: '#5a971a',
    950: '#000000',
  },
}
SCSS
$custom: #5a971a;
$custom-light: #8eb663;
$custom-dark: #000000;
JSON
{
  "hex": "#5a971a",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 89.28,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.61157,
    "c": 0.16253,
    "h": 133.1
  },
  "luminance": 0.24381
}

Semantic roles & 50–950 ramp

primary
#5A971A
secondary
#854BC2
accent
#3AED92
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A971A

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

Preview Lab → · Contrast checker → · Palette generator →

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