#5A8417#5A8417

#5A8417 is a mid, vivid yellow-green. Relative luminance 0.187; OKLCH L 56.2% C 0.140 H 129.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5A8417
RGBrgb(90, 132, 23)
HSLhsl(83, 70%, 30%)
HSVhsv(83, 83%, 52%)
CMYKcmyk(31.8%, 0%, 82.6%, 48.2%)
CIE-LABlab(50.38, -31.02, 49.31)
CIE-LCHlch(50.38, 58.25, 122.18°)
OKLaboklab(56.18% -0.0888 0.1083)
OKLCHoklch(56.18% 0.14 129.4)
XYZxyz(12.6223, 18.7377, 3.7621)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8417 #411784
analogous
#847717 #5A8417 #248417
triadic
#5A8417 #175A84 #84175A
tetradic
#5A8417 #178477 #411784 #841724
square
#5A8417 #178477 #411784 #841724
split-complementary
#5A8417 #172484 #771784
monochromatic
#131C05 #36500E #5A8417 #7EB820 #9DDC39

Accessibility & contrast

On white

4.42
#5A8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5A8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8417
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8417#FFFFFF#000000##000000
##5A84171.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#5D7E70
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a8417;
/* rgb */ color: rgb(90, 132, 23);
/* oklch */ color: oklch(56.2% 0.140 129.4);
Tailwind
colors: {
  custom: {
    50: '#8da85f',
    500: '#5a8417',
    950: '#000000',
  },
}
SCSS
$custom: #5a8417;
$custom-light: #8da85f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8417",
  "rgb": {
    "r": 90,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 83.119,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56179,
    "c": 0.14008,
    "h": 129.4
  },
  "luminance": 0.18738
}

Semantic roles & 50–950 ramp

primary
#5A8417
secondary
#6D3FB8
accent
#3BED7F
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8417

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

Preview Lab → · Contrast checker → · Palette generator →

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