#5A901B#5A901B

#5A901B is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.3% C 0.153 H 132.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5A901B
RGBrgb(90, 144, 27)
HSLhsl(88, 68%, 34%)
HSVhsv(88, 81%, 56%)
CMYKcmyk(37.5%, 0%, 81.3%, 43.5%)
CIE-LABlab(54.24, -36.27, 51.63)
CIE-LCHlch(54.24, 63.10, 125.09°)
OKLaboklab(59.33% -0.1027 0.1139)
OKLCHoklch(59.33% 0.153 132.1)
XYZxyz(14.3874, 22.1987, 4.5634)
Luminance0.2220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A901B #511B90
analogous
#908B1B #5A901B #20901B
triadic
#5A901B #1B5A90 #901B5A
tetradic
#5A901B #1B908B #511B90 #901B20
square
#5A901B #1B908B #511B90 #901B20
split-complementary
#5A901B #1B2090 #8B1B90
monochromatic
#1A2908 #3A5C11 #5A901B #7AC425 #98DD49

Accessibility & contrast

On white

3.86
#5A901B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5A901B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A901B
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A901B#FFFFFF#000000##000000
##5A901B1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#5B8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a901b;
/* rgb */ color: rgb(90, 144, 27);
/* oklch */ color: oklch(59.3% 0.153 132.1);
Tailwind
colors: {
  custom: {
    50: '#8eb162',
    500: '#5a901b',
    950: '#000000',
  },
}
SCSS
$custom: #5a901b;
$custom-light: #8eb162;
$custom-dark: #000000;
JSON
{
  "hex": "#5a901b",
  "rgb": {
    "r": 90,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 87.692,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59334,
    "c": 0.15335,
    "h": 132.1
  },
  "luminance": 0.22199
}

Semantic roles & 50–950 ramp

primary
#5A901B
secondary
#7F48BF
accent
#3DEB8D
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A901B

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

Preview Lab → · Contrast checker → · Palette generator →

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