#28A242#28A242

#28A242 is a light, vivid green. Relative luminance 0.267; OKLCH L 62.6% C 0.171 H 146.5°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#28A242
RGBrgb(40, 162, 66)
HSLhsl(133, 60%, 40%)
HSVhsv(133, 75%, 64%)
CMYKcmyk(75.3%, 0%, 59.3%, 36.5%)
CIE-LABlab(58.68, -53.04, 39.98)
CIE-LCHlch(58.68, 66.42, 142.99°)
OKLaboklab(62.62% -0.1429 0.0946)
OKLCHoklch(62.62% 0.171 146.5)
XYZxyz(14.7777, 26.6834, 9.5248)
Luminance0.2668 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28A242 #A22888
analogous
#4BA228 #28A242 #28A27F
triadic
#28A242 #4228A2 #A24228
tetradic
#28A242 #284BA2 #A22888 #A27F28
square
#28A242 #284BA2 #A22888 #A27F28
split-complementary
#28A242 #7F28A2 #A2284B
monochromatic
#10401A #1C712E #28A242 #39CE59 #6ADA82

Accessibility & contrast

On white

3.31
#28A242 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#28A242 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #28A242
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28A242#FFFFFF#000000##000000
##28A2421.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49338
Deuteranopia (green-blind)
#96894A
Tritanopia (blue-blind)
#009E8D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #28a242;
/* rgb */ color: rgb(40, 162, 66);
/* oklch */ color: oklch(62.6% 0.171 146.5);
Tailwind
colors: {
  custom: {
    50: '#75bf79',
    500: '#28a242',
    950: '#000000',
  },
}
SCSS
$custom: #28a242;
$custom-light: #75bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#28a242",
  "rgb": {
    "r": 40,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 132.787,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.62616,
    "c": 0.17136,
    "h": 146.5
  },
  "luminance": 0.26685
}

Semantic roles & 50–950 ramp

primary
#28A242
secondary
#C165AD
accent
#44C2E4
background
#F7FBF7
surface
#EEF7EE
border
#C9D0C9
text
#0A1209
muted
#7C817B

Preview Lab

Preview with #28A242

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

Preview Lab → · Contrast checker → · Palette generator →

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