#5A971C#5A971C

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

Color values

HEX#5A971C
RGBrgb(90, 151, 28)
HSLhsl(90, 69%, 35%)
HSVhsv(90, 81%, 59%)
CMYKcmyk(40.4%, 0%, 81.5%, 40.8%)
CIE-LABlab(56.48, -39.27, 53.39)
CIE-LCHlch(56.48, 66.28, 126.34°)
OKLaboklab(61.17% -0.1107 0.1177)
OKLCHoklch(61.17% 0.162 133.3)
XYZxyz(15.4924, 24.3900, 4.9898)
Luminance0.2439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A971C #591C97
analogous
#97961C #5A971C #1D971C
triadic
#5A971C #1C5A97 #971C5A
tetradic
#5A971C #1C9796 #591C97 #971C1D
square
#5A971C #1C9796 #591C97 #971C1D
split-complementary
#5A971C #1C1D97 #961C97
monochromatic
#1C3009 #3B6312 #5A971C #79CB26 #97DE4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a971c;
/* rgb */ color: rgb(90, 151, 28);
/* oklch */ color: oklch(61.2% 0.162 133.3);
Tailwind
colors: {
  custom: {
    50: '#8eb664',
    500: '#5a971c',
    950: '#000000',
  },
}
SCSS
$custom: #5a971c;
$custom-light: #8eb664;
$custom-dark: #000000;
JSON
{
  "hex": "#5a971c",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 89.756,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61167,
    "c": 0.16162,
    "h": 133.3
  },
  "luminance": 0.24391
}

Semantic roles & 50–950 ramp

primary
#5A971C
secondary
#874EC1
accent
#3CEC93
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A971C

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

Preview Lab → · Contrast checker → · Palette generator →

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