#5FA228#5FA228

#5FA228 is a light, vivid yellow-green. Relative luminance 0.284; OKLCH L 64.4% C 0.166 H 134.3°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5FA228
RGBrgb(95, 162, 40)
HSLhsl(93, 60%, 40%)
HSVhsv(93, 75%, 64%)
CMYKcmyk(41.4%, 0%, 75.3%, 36.5%)
CIE-LABlab(60.27, -41.51, 53.16)
CIE-LCHlch(60.27, 67.44, 127.98°)
OKLaboklab(64.36% -0.1163 0.119)
OKLCHoklch(64.36% 0.166 134.3)
XYZxyz(18.0223, 28.4258, 6.5442)
Luminance0.2843 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5FA228 #6B28A2
analogous
#9CA228 #5FA228 #28A22E
triadic
#5FA228 #285FA2 #A2285F
tetradic
#5FA228 #289CA2 #6B28A2 #A22E28
square
#5FA228 #289CA2 #6B28A2 #A22E28
split-complementary
#5FA228 #2E28A2 #A2289C
monochromatic
#254010 #42711C #5FA228 #7CCE39 #9DDA6A

Accessibility & contrast

On white

3.14
#5FA228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#5FA228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5FA228
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5FA228#FFFFFF#000000##000000
##5FA2281.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8950E
Deuteranopia (green-blind)
#9F8F34
Tritanopia (blue-blind)
#5E9C8B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #5fa228;
/* rgb */ color: rgb(95, 162, 40);
/* oklch */ color: oklch(64.4% 0.166 134.3);
Tailwind
colors: {
  custom: {
    50: '#92be6b',
    500: '#5fa228',
    950: '#000000',
  },
}
SCSS
$custom: #5fa228;
$custom-light: #92be6b;
$custom-dark: #000000;
JSON
{
  "hex": "#5fa228",
  "rgb": {
    "r": 95,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 92.951,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.64362,
    "c": 0.16638,
    "h": 134.3
  },
  "luminance": 0.28427
}

Semantic roles & 50–950 ramp

primary
#5FA228
secondary
#9765C1
accent
#44E49C
background
#F9FBF6
surface
#F2F7EC
border
#CCD0C7
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #5FA228

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

Preview Lab → · Contrast checker → · Palette generator →

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