#56A228#56A228

#56A228 is a light, vivid yellow-green. Relative luminance 0.280; OKLCH L 63.9% C 0.171 H 136.4°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#56A228
RGBrgb(86, 162, 40)
HSLhsl(97, 60%, 40%)
HSVhsv(97, 75%, 64%)
CMYKcmyk(46.9%, 0%, 75.3%, 36.5%)
CIE-LABlab(59.86, -44.51, 52.62)
CIE-LCHlch(59.86, 68.92, 130.22°)
OKLaboklab(63.92% -0.1238 0.118)
OKLCHoklch(63.92% 0.171 136.4)
XYZxyz(17.1406, 27.9712, 6.5029)
Luminance0.2797 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56A228 #7428A2
analogous
#93A228 #56A228 #28A237
triadic
#56A228 #2856A2 #A22856
tetradic
#56A228 #2893A2 #7428A2 #A23728
square
#56A228 #2893A2 #7428A2 #A23728
split-complementary
#56A228 #3728A2 #A22893
monochromatic
#224010 #3C711C #56A228 #71CE39 #94DA6A

Accessibility & contrast

On white

3.18
#56A228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#56A228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #56A228
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56A228#FFFFFF#000000##000000
##56A2281.003.186.596.59
#FFFFFF3.181.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8940E
Deuteranopia (green-blind)
#9E8E35
Tritanopia (blue-blind)
#529C8B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #56a228;
/* rgb */ color: rgb(86, 162, 40);
/* oklch */ color: oklch(63.9% 0.171 136.4);
Tailwind
colors: {
  custom: {
    50: '#8dbe6b',
    500: '#56a228',
    950: '#000000',
  },
}
SCSS
$custom: #56a228;
$custom-light: #8dbe6b;
$custom-dark: #000000;
JSON
{
  "hex": "#56a228",
  "rgb": {
    "r": 86,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 97.377,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63915,
    "c": 0.17103,
    "h": 136.4
  },
  "luminance": 0.27972
}

Semantic roles & 50–950 ramp

primary
#56A228
secondary
#9E65C1
accent
#44E4A7
background
#F9FBF6
surface
#F1F7EC
border
#CBD0C7
text
#0D1207
muted
#7E817A

Preview Lab

Preview with #56A228

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

Preview Lab → · Contrast checker → · Palette generator →

#56A228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva