#5AB228#5AB228

#5AB228 is a light, vivid yellow-green. Relative luminance 0.342; OKLCH L 68.3% C 0.189 H 137.0°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5AB228
RGBrgb(90, 178, 40)
HSLhsl(98, 63%, 43%)
HSVhsv(98, 78%, 70%)
CMYKcmyk(49.4%, 0%, 77.5%, 30.2%)
CIE-LABlab(65.09, -49.60, 57.76)
CIE-LCHlch(65.09, 76.13, 130.65°)
OKLaboklab(68.26% -0.1378 0.1287)
OKLCHoklch(68.26% 0.189 137)
XYZxyz(20.5192, 34.1662, 7.5206)
Luminance0.3417 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5AB228 #8028B2
analogous
#9FB228 #5AB228 #28B23B
triadic
#5AB228 #285AB2 #B2285A
tetradic
#5AB228 #289FB2 #8028B2 #B23B28
square
#5AB228 #289FB2 #8028B2 #B23B28
split-complementary
#5AB228 #3B28B2 #B2289F
monochromatic
#274E12 #41801D #5AB228 #77D543 #9BE075

Accessibility & contrast

On white

2.68
#5AB228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#5AB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5AB228
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5AB228#FFFFFF#000000##000000
##5AB2281.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A302
Deuteranopia (green-blind)
#AD9B37
Tritanopia (blue-blind)
#55AB98
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #5ab228;
/* rgb */ color: rgb(90, 178, 40);
/* oklch */ color: oklch(68.3% 0.189 137.0);
Tailwind
colors: {
  custom: {
    50: '#91ca6d',
    500: '#5ab228',
    950: '#000000',
  },
}
SCSS
$custom: #5ab228;
$custom-light: #91ca6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5ab228",
  "rgb": {
    "r": 90,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 98.261,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.68261,
    "c": 0.18853,
    "h": 137
  },
  "luminance": 0.34168
}

Semantic roles & 50–950 ramp

primary
#5AB228
secondary
#A76FC7
accent
#41E6AB
background
#F9FCF6
surface
#F2F8EC
border
#CCD1C7
text
#0E1308
muted
#7E827B

Preview Lab

Preview with #5AB228

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

Preview Lab → · Contrast checker → · Palette generator →

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