#28AF40#28AF40

#28AF40 is a light, vivid green. Relative luminance 0.315; OKLCH L 66.1% C 0.189 H 145.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#28AF40
RGBrgb(40, 175, 64)
HSLhsl(131, 63%, 42%)
HSVhsv(131, 77%, 69%)
CMYKcmyk(77.1%, 0%, 63.4%, 31.4%)
CIE-LABlab(62.91, -57.70, 45.75)
CIE-LCHlch(62.91, 73.64, 141.59°)
OKLaboklab(66.12% -0.1556 0.1069)
OKLCHoklch(66.12% 0.189 145.5)
XYZxyz(17.1292, 31.4792, 10.0228)
Luminance0.3148 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28AF40 #AF2897
analogous
#53AF28 #28AF40 #28AF84
triadic
#28AF40 #4028AF #AF4028
tetradic
#28AF40 #2853AF #AF2897 #AF8428
square
#28AF40 #2853AF #AF2897 #AF8428
split-complementary
#28AF40 #8428AF #AF2853
monochromatic
#114B1C #1D7D2E #28AF40 #41D45B #73DF86

Accessibility & contrast

On white

2.88
#28AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#28AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #28AF40
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28AF40#FFFFFF#000000##000000
##28AF401.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F33
Deuteranopia (green-blind)
#A3944A
Tritanopia (blue-blind)
#00AB98
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #28af40;
/* rgb */ color: rgb(40, 175, 64);
/* oklch */ color: oklch(66.1% 0.189 145.5);
Tailwind
colors: {
  custom: {
    50: '#79c879',
    500: '#28af40',
    950: '#000000',
  },
}
SCSS
$custom: #28af40;
$custom-light: #79c879;
$custom-dark: #000000;
JSON
{
  "hex": "#28af40",
  "rgb": {
    "r": 40,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 130.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66118,
    "c": 0.18875,
    "h": 145.5
  },
  "luminance": 0.31481
}

Semantic roles & 50–950 ramp

primary
#28AF40
secondary
#C66DB6
accent
#42C9E6
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #28AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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