#5A8518#5A8518

#5A8518 is a mid, vivid yellow-green. Relative luminance 0.190; OKLCH L 56.4% C 0.141 H 129.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5A8518
RGBrgb(90, 133, 24)
HSLhsl(84, 69%, 31%)
HSVhsv(84, 82%, 52%)
CMYKcmyk(32.3%, 0%, 82%, 47.8%)
CIE-LABlab(50.70, -31.44, 49.30)
CIE-LCHlch(50.70, 58.47, 122.53°)
OKLaboklab(56.45% -0.0899 0.1085)
OKLCHoklch(56.45% 0.141 129.7)
XYZxyz(12.7688, 19.0143, 3.8613)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8518 #431885
analogous
#857918 #5A8518 #238518
triadic
#5A8518 #185A85 #85185A
tetradic
#5A8518 #188579 #431885 #851823
square
#5A8518 #188579 #431885 #851823
split-complementary
#5A8518 #182385 #791885
monochromatic
#141D05 #37510F #5A8518 #7DB921 #9DDC3C

Accessibility & contrast

On white

4.37
#5A8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5A8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8518
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8518#FFFFFF#000000##000000
##5A85181.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#5D7F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a8518;
/* rgb */ color: rgb(90, 133, 24);
/* oklch */ color: oklch(56.4% 0.141 129.7);
Tailwind
colors: {
  custom: {
    50: '#8da860',
    500: '#5a8518',
    950: '#000000',
  },
}
SCSS
$custom: #5a8518;
$custom-light: #8da860;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8518",
  "rgb": {
    "r": 90,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 83.67,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56446,
    "c": 0.14087,
    "h": 129.7
  },
  "luminance": 0.19015
}

Semantic roles & 50–950 ramp

primary
#5A8518
secondary
#7040B9
accent
#3CEC81
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5A8518

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

Preview Lab → · Contrast checker → · Palette generator →

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