#5A9017#5A9017

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

Color values

HEX#5A9017
RGBrgb(90, 144, 23)
HSLhsl(87, 72%, 33%)
HSVhsv(87, 84%, 56%)
CMYKcmyk(37.5%, 0%, 84%, 43.5%)
CIE-LABlab(54.22, -36.46, 52.77)
CIE-LCHlch(54.22, 64.14, 124.64°)
OKLaboklab(59.31% -0.1035 0.1156)
OKLCHoklch(59.31% 0.155 131.8)
XYZxyz(14.3442, 22.1814, 4.3361)
Luminance0.2218 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9017 #4D1790
analogous
#908917 #5A9017 #1D9017
triadic
#5A9017 #175A90 #90175A
tetradic
#5A9017 #179089 #4D1790 #90171D
square
#5A9017 #179089 #4D1790 #90171D
split-complementary
#5A9017 #171D90 #891790
monochromatic
#182606 #395B0F #5A9017 #7BC51F #99E141

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A9017#FFFFFF#000000##000000
##5A90171.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)
#978400
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#5B8A7A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a9017;
/* rgb */ color: rgb(90, 144, 23);
/* oklch */ color: oklch(59.3% 0.155 131.8);
Tailwind
colors: {
  custom: {
    50: '#8eb161',
    500: '#5a9017',
    950: '#000000',
  },
}
SCSS
$custom: #5a9017;
$custom-light: #8eb161;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9017",
  "rgb": {
    "r": 90,
    "g": 144,
    "b": 23
  },
  "hsl": {
    "h": 86.777,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59313,
    "c": 0.15519,
    "h": 131.8
  },
  "luminance": 0.22182
}

Semantic roles & 50–950 ramp

primary
#5A9017
secondary
#7B42C1
accent
#39EF8A
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A9017

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

Preview Lab → · Contrast checker → · Palette generator →

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