#5A971B#5A971B

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

Color values

HEX#5A971B
RGBrgb(90, 151, 27)
HSLhsl(90, 70%, 35%)
HSVhsv(90, 82%, 59%)
CMYKcmyk(40.4%, 0%, 82.1%, 40.8%)
CIE-LABlab(56.47, -39.32, 53.68)
CIE-LCHlch(56.47, 66.54, 126.22°)
OKLaboklab(61.16% -0.1109 0.1182)
OKLCHoklch(61.16% 0.162 133.2)
XYZxyz(15.4807, 24.3852, 4.9278)
Luminance0.2439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A971B #581B97
analogous
#97961B #5A971B #1C971B
triadic
#5A971B #1B5A97 #971B5A
tetradic
#5A971B #1B9796 #581B97 #971B1C
square
#5A971B #1B9796 #581B97 #971B1C
split-complementary
#5A971B #1B1C97 #961B97
monochromatic
#1C2F08 #3B6312 #5A971B #79CB24 #97DF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5a971b;
/* rgb */ color: rgb(90, 151, 27);
/* oklch */ color: oklch(61.2% 0.162 133.2);
Tailwind
colors: {
  custom: {
    50: '#8eb663',
    500: '#5a971b',
    950: '#000000',
  },
}
SCSS
$custom: #5a971b;
$custom-light: #8eb663;
$custom-dark: #000000;
JSON
{
  "hex": "#5a971b",
  "rgb": {
    "r": 90,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 89.516,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61162,
    "c": 0.16208,
    "h": 133.2
  },
  "luminance": 0.24386
}

Semantic roles & 50–950 ramp

primary
#5A971B
secondary
#864CC1
accent
#3BEC92
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A971B

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

Preview Lab → · Contrast checker → · Palette generator →

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