#5A9617#5A9617

#5A9617 is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 60.9% C 0.163 H 132.8°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5A9617
RGBrgb(90, 150, 23)
HSLhsl(88, 73%, 34%)
HSVhsv(88, 85%, 59%)
CMYKcmyk(40%, 0%, 84.7%, 41.2%)
CIE-LABlab(56.14, -39.07, 54.48)
CIE-LCHlch(56.14, 67.04, 125.65°)
OKLaboklab(60.88% -0.1105 0.1193)
OKLCHoklch(60.88% 0.163 132.8)
XYZxyz(15.2772, 24.0475, 4.6471)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9617 #531796
analogous
#969317 #5A9617 #1B9617
triadic
#5A9617 #175A96 #96175A
tetradic
#5A9617 #179693 #531796 #96171B
square
#5A9617 #179693 #531796 #96171B
split-complementary
#5A9617 #171B96 #931796
monochromatic
#1A2C07 #3A610F #5A9617 #7ACB1F #98E245

Accessibility & contrast

On white

3.61
#5A9617 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5A9617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9617
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9617#FFFFFF#000000##000000
##5A96171.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#948527
Tritanopia (blue-blind)
#5B907F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a9617;
/* rgb */ color: rgb(90, 150, 23);
/* oklch */ color: oklch(60.9% 0.163 132.8);
Tailwind
colors: {
  custom: {
    50: '#8eb562',
    500: '#5a9617',
    950: '#000000',
  },
}
SCSS
$custom: #5a9617;
$custom-light: #8eb562;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9617",
  "rgb": {
    "r": 90,
    "g": 150,
    "b": 23
  },
  "hsl": {
    "h": 88.346,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60881,
    "c": 0.16258,
    "h": 132.8
  },
  "luminance": 0.24048
}

Semantic roles & 50–950 ramp

primary
#5A9617
secondary
#8145C3
accent
#38F08F
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A9617

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

Preview Lab → · Contrast checker → · Palette generator →

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