#5A971F#5A971F

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

Color values

HEX#5A971F
RGBrgb(90, 151, 31)
HSLhsl(91, 66%, 36%)
HSVhsv(91, 79%, 59%)
CMYKcmyk(40.4%, 0%, 79.5%, 40.8%)
CIE-LABlab(56.49, -39.11, 52.48)
CIE-LCHlch(56.49, 65.45, 126.70°)
OKLaboklab(61.18% -0.1101 0.1163)
OKLCHoklch(61.18% 0.16 133.4)
XYZxyz(15.5301, 24.4050, 5.1884)
Luminance0.2441 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A971F #5C1F97
analogous
#96971F #5A971F #1F9720
triadic
#5A971F #1F5A97 #971F5A
tetradic
#5A971F #1F9697 #5C1F97 #97201F
square
#5A971F #1F9697 #5C1F97 #97201F
split-complementary
#5A971F #201F97 #971F96
monochromatic
#1D310A #3C6415 #5A971F #78CA29 #97DC54

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A971F#FFFFFF#000000##000000
##5A971F1.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)
#95862C
Tritanopia (blue-blind)
#5A9181
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a971f;
/* rgb */ color: rgb(90, 151, 31);
/* oklch */ color: oklch(61.2% 0.160 133.4);
Tailwind
colors: {
  custom: {
    50: '#8eb665',
    500: '#5a971f',
    950: '#000000',
  },
}
SCSS
$custom: #5a971f;
$custom-light: #8eb665;
$custom-dark: #000000;
JSON
{
  "hex": "#5a971f",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 90.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61184,
    "c": 0.16015,
    "h": 133.4
  },
  "luminance": 0.24406
}

Semantic roles & 50–950 ramp

primary
#5A971F
secondary
#8A52BF
accent
#3FE995
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A971F

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

Preview Lab → · Contrast checker → · Palette generator →

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