#40AF28#40AF28

#40AF28 is a light, vivid green. Relative luminance 0.319; OKLCH L 66.5% C 0.196 H 140.6°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#40AF28
RGBrgb(64, 175, 40)
HSLhsl(109, 63%, 42%)
HSVhsv(109, 77%, 69%)
CMYKcmyk(63.4%, 0%, 77.1%, 31.4%)
CIE-LABlab(63.26, -55.44, 55.69)
CIE-LCHlch(63.26, 78.58, 134.87°)
OKLaboklab(66.5% -0.1518 0.1247)
OKLCHoklch(66.5% 0.196 140.6)
XYZxyz(17.8265, 31.9014, 7.2252)
Luminance0.3190 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40AF28 #9728AF
analogous
#84AF28 #40AF28 #28AF53
triadic
#40AF28 #2840AF #AF2840
tetradic
#40AF28 #2884AF #9728AF #AF5328
square
#40AF28 #2884AF #9728AF #AF5328
split-complementary
#40AF28 #5328AF #AF2884
monochromatic
#1C4B11 #2E7D1D #40AF28 #5BD441 #86DF73

Accessibility & contrast

On white

2.85
#40AF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#40AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40AF28
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40AF28#FFFFFF#000000##000000
##40AF281.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F05
Deuteranopia (green-blind)
#A69637
Tritanopia (blue-blind)
#2EA996
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #40af28;
/* rgb */ color: rgb(64, 175, 40);
/* oklch */ color: oklch(66.5% 0.196 140.6);
Tailwind
colors: {
  custom: {
    50: '#83c86c',
    500: '#40af28',
    950: '#000000',
  },
}
SCSS
$custom: #40af28;
$custom-light: #83c86c;
$custom-dark: #000000;
JSON
{
  "hex": "#40af28",
  "rgb": {
    "r": 64,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 109.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66503,
    "c": 0.19647,
    "h": 140.6
  },
  "luminance": 0.31903
}

Semantic roles & 50–950 ramp

primary
#40AF28
secondary
#B66DC6
accent
#42E6C9
background
#F8FCF6
surface
#F0F8EC
border
#CBD1C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #40AF28

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

Preview Lab → · Contrast checker → · Palette generator →

#40AF28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva