#28AF31#28AF31

#28AF31 is a light, vivid green. Relative luminance 0.313; OKLCH L 66.0% C 0.199 H 143.7°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#28AF31
RGBrgb(40, 175, 49)
HSLhsl(124, 63%, 42%)
HSVhsv(124, 77%, 69%)
CMYKcmyk(77.1%, 0%, 72%, 31.4%)
CIE-LABlab(62.79, -59.22, 51.83)
CIE-LCHlch(62.79, 78.70, 138.81°)
OKLaboklab(65.97% -0.1603 0.118)
OKLCHoklch(65.97% 0.199 143.7)
XYZxyz(16.7583, 31.3308, 8.0694)
Luminance0.3133 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28AF31 #AF28A6
analogous
#63AF28 #28AF31 #28AF75
triadic
#28AF31 #3128AF #AF3128
tetradic
#28AF31 #2863AF #AF28A6 #AF7528
square
#28AF31 #2863AF #AF28A6 #AF7528
split-complementary
#28AF31 #7528AF #AF2863
monochromatic
#114B15 #1D7D23 #28AF31 #41D44A #73DF7A

Accessibility & contrast

On white

2.89
#28AF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#28AF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #28AF31
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28AF31#FFFFFF#000000##000000
##28AF311.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E1C
Deuteranopia (green-blind)
#A4943E
Tritanopia (blue-blind)
#00AA96
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #28af31;
/* rgb */ color: rgb(40, 175, 49);
/* oklch */ color: oklch(66.0% 0.199 143.7);
Tailwind
colors: {
  custom: {
    50: '#79c871',
    500: '#28af31',
    950: '#000000',
  },
}
SCSS
$custom: #28af31;
$custom-light: #79c871;
$custom-dark: #000000;
JSON
{
  "hex": "#28af31",
  "rgb": {
    "r": 40,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 124,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.65975,
    "c": 0.19909,
    "h": 143.7
  },
  "luminance": 0.31333
}

Semantic roles & 50–950 ramp

primary
#28AF31
secondary
#C66DC0
accent
#42DBE6
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #28AF31

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

Preview Lab → · Contrast checker → · Palette generator →

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