#5A9018#5A9018

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

Color values

HEX#5A9018
RGBrgb(90, 144, 24)
HSLhsl(87, 71%, 33%)
HSVhsv(87, 83%, 56%)
CMYKcmyk(37.5%, 0%, 83.3%, 43.5%)
CIE-LABlab(54.22, -36.42, 52.49)
CIE-LCHlch(54.22, 63.89, 124.75°)
OKLaboklab(59.32% -0.1033 0.1152)
OKLCHoklch(59.32% 0.155 131.9)
XYZxyz(14.3544, 22.1855, 4.3899)
Luminance0.2219 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9018 #4E1890
analogous
#908A18 #5A9018 #1E9018
triadic
#5A9018 #185A90 #90185A
tetradic
#5A9018 #18908A #4E1890 #90181E
square
#5A9018 #18908A #4E1890 #90181E
split-complementary
#5A9018 #181E90 #8A1890
monochromatic
#182707 #395C0F #5A9018 #7BC421 #99E043

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A9018#FFFFFF#000000##000000
##5A90181.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: #5a9018;
/* rgb */ color: rgb(90, 144, 24);
/* oklch */ color: oklch(59.3% 0.155 131.9);
Tailwind
colors: {
  custom: {
    50: '#8eb161',
    500: '#5a9018',
    950: '#000000',
  },
}
SCSS
$custom: #5a9018;
$custom-light: #8eb161;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9018",
  "rgb": {
    "r": 90,
    "g": 144,
    "b": 24
  },
  "hsl": {
    "h": 87,
    "s": 71.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59318,
    "c": 0.15475,
    "h": 131.9
  },
  "luminance": 0.22186
}

Semantic roles & 50–950 ramp

primary
#5A9018
secondary
#7C43C0
accent
#3AEE8B
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A9018

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

Preview Lab → · Contrast checker → · Palette generator →

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