#5A971E#5A971E

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

Color values

HEX#5A971E
RGBrgb(90, 151, 30)
HSLhsl(90, 67%, 35%)
HSVhsv(90, 80%, 59%)
CMYKcmyk(40.4%, 0%, 80.1%, 40.8%)
CIE-LABlab(56.49, -39.17, 52.79)
CIE-LCHlch(56.49, 65.73, 126.57°)
OKLaboklab(61.18% -0.1103 0.1168)
OKLCHoklch(61.18% 0.161 133.4)
XYZxyz(15.5172, 24.3998, 5.1201)
Luminance0.2440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A971E #5B1E97
analogous
#96971E #5A971E #1E971E
triadic
#5A971E #1E5A97 #971E5A
tetradic
#5A971E #1E9697 #5B1E97 #971E1E
square
#5A971E #1E9697 #5B1E97 #971E1E
split-complementary
#5A971E #1E1E97 #971E96
monochromatic
#1D310A #3C6414 #5A971E #78CA28 #97DD53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A971E#FFFFFF#000000##000000
##5A971E1.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: #5a971e;
/* rgb */ color: rgb(90, 151, 30);
/* oklch */ color: oklch(61.2% 0.161 133.4);
Tailwind
colors: {
  custom: {
    50: '#8eb665',
    500: '#5a971e',
    950: '#000000',
  },
}
SCSS
$custom: #5a971e;
$custom-light: #8eb665;
$custom-dark: #000000;
JSON
{
  "hex": "#5a971e",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 30
  },
  "hsl": {
    "h": 90.248,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61178,
    "c": 0.16066,
    "h": 133.4
  },
  "luminance": 0.24401
}

Semantic roles & 50–950 ramp

primary
#5A971E
secondary
#8951C0
accent
#3EEA95
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A971E

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

Preview Lab → · Contrast checker → · Palette generator →

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