#5A8F17#5A8F17

#5A8F17 is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.1% C 0.154 H 131.7°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A8F17
RGBrgb(90, 143, 23)
HSLhsl(87, 72%, 33%)
HSVhsv(87, 84%, 56%)
CMYKcmyk(37.1%, 0%, 83.9%, 43.9%)
CIE-LABlab(53.90, -36.02, 52.48)
CIE-LCHlch(53.90, 63.66, 124.46°)
OKLaboklab(59.05% -0.1023 0.115)
OKLCHoklch(59.05% 0.154 131.7)
XYZxyz(14.1934, 21.8799, 4.2858)
Luminance0.2188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8F17 #4C178F
analogous
#8F8817 #5A8F17 #1E8F17
triadic
#5A8F17 #175A8F #8F175A
tetradic
#5A8F17 #178F88 #4C178F #8F171E
square
#5A8F17 #178F88 #4C178F #8F171E
split-complementary
#5A8F17 #171E8F #88178F
monochromatic
#182606 #395A0F #5A8F17 #7BC41F #9AE040

Accessibility & contrast

On white

3.91
#5A8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5A8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8F17
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8F17#FFFFFF#000000##000000
##5A8F171.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968300
Deuteranopia (green-blind)
#8E7F25
Tritanopia (blue-blind)
#5B897A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a8f17;
/* rgb */ color: rgb(90, 143, 23);
/* oklch */ color: oklch(59.1% 0.154 131.7);
Tailwind
colors: {
  custom: {
    50: '#8eb061',
    500: '#5a8f17',
    950: '#000000',
  },
}
SCSS
$custom: #5a8f17;
$custom-light: #8eb061;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8f17",
  "rgb": {
    "r": 90,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 86.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59052,
    "c": 0.15395,
    "h": 131.7
  },
  "luminance": 0.2188
}

Semantic roles & 50–950 ramp

primary
#5A8F17
secondary
#7941C1
accent
#39EF89
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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