#28AF42#28AF42

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

Color values

HEX#28AF42
RGBrgb(40, 175, 66)
HSLhsl(132, 63%, 42%)
HSVhsv(132, 77%, 69%)
CMYKcmyk(77.1%, 0%, 62.3%, 31.4%)
CIE-LABlab(62.93, -57.47, 44.87)
CIE-LCHlch(62.93, 72.91, 142.02°)
OKLaboklab(66.14% -0.1549 0.1052)
OKLCHoklch(66.14% 0.187 145.8)
XYZxyz(17.1872, 31.5024, 10.3280)
Luminance0.3150 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28AF42 #AF2895
analogous
#51AF28 #28AF42 #28AF86
triadic
#28AF42 #4228AF #AF4228
tetradic
#28AF42 #2851AF #AF2895 #AF8628
square
#28AF42 #2851AF #AF2895 #AF8628
split-complementary
#28AF42 #8628AF #AF2851
monochromatic
#114B1C #1D7D2F #28AF42 #41D45D #73DF87

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28AF42#FFFFFF#000000##000000
##28AF421.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)
#B29F36
Deuteranopia (green-blind)
#A3944B
Tritanopia (blue-blind)
#00AB98
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #28af42;
/* rgb */ color: rgb(40, 175, 66);
/* oklch */ color: oklch(66.1% 0.187 145.8);
Tailwind
colors: {
  custom: {
    50: '#79c87a',
    500: '#28af42',
    950: '#000000',
  },
}
SCSS
$custom: #28af42;
$custom-light: #79c87a;
$custom-dark: #000000;
JSON
{
  "hex": "#28af42",
  "rgb": {
    "r": 40,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 131.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.6614,
    "c": 0.18721,
    "h": 145.8
  },
  "luminance": 0.31504
}

Semantic roles & 50–950 ramp

primary
#28AF42
secondary
#C66DB5
accent
#42C6E6
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0A1309
muted
#7C827B

Preview Lab

Preview with #28AF42

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

Preview Lab → · Contrast checker → · Palette generator →

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