#28A228#28A228

#28A228 is a light, vivid green. Relative luminance 0.264; OKLCH L 62.4% C 0.190 H 142.9°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#28A228
RGBrgb(40, 162, 40)
HSLhsl(120, 60%, 40%)
HSVhsv(120, 75%, 64%)
CMYKcmyk(75.3%, 0%, 75.3%, 36.5%)
CIE-LABlab(58.46, -55.76, 50.76)
CIE-LCHlch(58.46, 75.40, 137.69°)
OKLaboklab(62.36% -0.1514 0.1146)
OKLCHoklch(62.36% 0.19 142.9)
XYZxyz(14.1775, 26.4434, 6.3640)
Luminance0.2645 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28A228 #A228A2
analogous
#65A228 #28A228 #28A265
triadic
#28A228 #2828A2 #A22828
tetradic
#28A228 #2865A2 #A228A2 #A26528
square
#28A228 #2865A2 #A228A2 #A26528
split-complementary
#28A228 #6528A2 #A22865
monochromatic
#104010 #1C711C #28A228 #39CE39 #6ADA6A

Accessibility & contrast

On white

3.34
#28A228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#28A228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28A228
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28A228#FFFFFF#000000##000000
##28A2281.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6920F
Deuteranopia (green-blind)
#988935
Tritanopia (blue-blind)
#009D8B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #28a228;
/* rgb */ color: rgb(40, 162, 40);
/* oklch */ color: oklch(62.4% 0.190 142.9);
Tailwind
colors: {
  custom: {
    50: '#77bf6a',
    500: '#28a228',
    950: '#000000',
  },
}
SCSS
$custom: #28a228;
$custom-light: #77bf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#28a228",
  "rgb": {
    "r": 40,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.62357,
    "c": 0.18984,
    "h": 142.9
  },
  "luminance": 0.26445
}

Semantic roles & 50–950 ramp

primary
#28A228
secondary
#C165C1
accent
#44E4E4
background
#F7FBF6
surface
#EEF7EC
border
#C9D0C7
text
#0A1207
muted
#7C817A

Preview Lab

Preview with #28A228

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

Preview Lab → · Contrast checker → · Palette generator →

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