#5A9F18#5A9F18

#5A9F18 is a light, vivid yellow-green. Relative luminance 0.270; OKLCH L 63.2% C 0.173 H 134.1°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A9F18
RGBrgb(90, 159, 24)
HSLhsl(91, 74%, 36%)
HSVhsv(91, 85%, 62%)
CMYKcmyk(43.4%, 0%, 84.9%, 37.6%)
CIE-LABlab(59.01, -42.82, 56.77)
CIE-LCHlch(59.01, 71.11, 127.03°)
OKLaboklab(63.24% -0.1205 0.1242)
OKLCHoklch(63.24% 0.173 134.1)
XYZxyz(16.7791, 27.0349, 5.1981)
Luminance0.2704 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9F18 #5D189F
analogous
#9D9F18 #5A9F18 #189F1A
triadic
#5A9F18 #185A9F #9F185A
tetradic
#5A9F18 #189D9F #5D189F #9F1A18
square
#5A9F18 #189D9F #5D189F #9F1A18
split-complementary
#5A9F18 #1A189F #9F189D
monochromatic
#1E3508 #3C6A10 #5A9F18 #78D420 #97E44D

Accessibility & contrast

On white

3.28
#5A9F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#5A9F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9F18
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9F18#FFFFFF#000000##000000
##5A9F181.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#9C8C29
Tritanopia (blue-blind)
#599887
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5a9f18;
/* rgb */ color: rgb(90, 159, 24);
/* oklch */ color: oklch(63.2% 0.173 134.1);
Tailwind
colors: {
  custom: {
    50: '#8fbc64',
    500: '#5a9f18',
    950: '#000000',
  },
}
SCSS
$custom: #5a9f18;
$custom-light: #8fbc64;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9f18",
  "rgb": {
    "r": 90,
    "g": 159,
    "b": 24
  },
  "hsl": {
    "h": 90.667,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63236,
    "c": 0.17307,
    "h": 134.1
  },
  "luminance": 0.27036
}

Semantic roles & 50–950 ramp

primary
#5A9F18
secondary
#8B4DC6
accent
#37F096
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5A9F18

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

Preview Lab → · Contrast checker → · Palette generator →

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