#5BA228#5BA228

#5BA228 is a light, vivid yellow-green. Relative luminance 0.282; OKLCH L 64.2% C 0.168 H 135.3°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5BA228
RGBrgb(91, 162, 40)
HSLhsl(95, 60%, 40%)
HSVhsv(95, 75%, 64%)
CMYKcmyk(43.8%, 0%, 75.3%, 36.5%)
CIE-LABlab(60.08, -42.87, 52.91)
CIE-LCHlch(60.08, 68.10, 129.01°)
OKLaboklab(64.16% -0.1197 0.1185)
OKLCHoklch(64.16% 0.168 135.3)
XYZxyz(17.6173, 28.2170, 6.5252)
Luminance0.2822 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5BA228 #6F28A2
analogous
#98A228 #5BA228 #28A232
triadic
#5BA228 #285BA2 #A2285B
tetradic
#5BA228 #2898A2 #6F28A2 #A23228
square
#5BA228 #2898A2 #6F28A2 #A23228
split-complementary
#5BA228 #3228A2 #A22898
monochromatic
#244010 #3F711C #5BA228 #77CE39 #99DA6A

Accessibility & contrast

On white

3.16
#5BA228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#5BA228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5BA228
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5BA228#FFFFFF#000000##000000
##5BA2281.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8940E
Deuteranopia (green-blind)
#9F8F34
Tritanopia (blue-blind)
#599C8B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5ba228;
/* rgb */ color: rgb(91, 162, 40);
/* oklch */ color: oklch(64.2% 0.168 135.3);
Tailwind
colors: {
  custom: {
    50: '#90be6b',
    500: '#5ba228',
    950: '#000000',
  },
}
SCSS
$custom: #5ba228;
$custom-light: #90be6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5ba228",
  "rgb": {
    "r": 91,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 94.918,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.64157,
    "c": 0.16846,
    "h": 135.3
  },
  "luminance": 0.28218
}

Semantic roles & 50–950 ramp

primary
#5BA228
secondary
#9A65C1
accent
#44E4A1
background
#F9FBF6
surface
#F1F7EC
border
#CBD0C7
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #5BA228

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

Preview Lab → · Contrast checker → · Palette generator →

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