#5A8E18#5A8E18

#5A8E18 is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.8% C 0.152 H 131.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A8E18
RGBrgb(90, 142, 24)
HSLhsl(86, 71%, 33%)
HSVhsv(86, 83%, 56%)
CMYKcmyk(36.6%, 0%, 83.1%, 44.3%)
CIE-LABlab(53.58, -35.53, 51.92)
CIE-LCHlch(53.58, 62.91, 124.39°)
OKLaboklab(58.8% -0.1009 0.114)
OKLCHoklch(58.8% 0.152 131.5)
XYZxyz(14.0542, 21.5850, 4.2898)
Luminance0.2159 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8E18 #4C188E
analogous
#8E8718 #5A8E18 #1F8E18
triadic
#5A8E18 #185A8E #8E185A
tetradic
#5A8E18 #188E87 #4C188E #8E181F
square
#5A8E18 #188E87 #4C188E #8E181F
split-complementary
#5A8E18 #181F8E #87188E
monochromatic
#182506 #395A0F #5A8E18 #7BC221 #9ADF41

Accessibility & contrast

On white

3.95
#5A8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5A8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8E18
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8E18#FFFFFF#000000##000000
##5A8E181.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8D7F26
Tritanopia (blue-blind)
#5C8879
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a8e18;
/* rgb */ color: rgb(90, 142, 24);
/* oklch */ color: oklch(58.8% 0.152 131.5);
Tailwind
colors: {
  custom: {
    50: '#8eaf61',
    500: '#5a8e18',
    950: '#000000',
  },
}
SCSS
$custom: #5a8e18;
$custom-light: #8eaf61;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8e18",
  "rgb": {
    "r": 90,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 86.441,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58796,
    "c": 0.15225,
    "h": 131.5
  },
  "luminance": 0.21586
}

Semantic roles & 50–950 ramp

primary
#5A8E18
secondary
#7942C0
accent
#3AEE89
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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