#40A02B#40A02B

#40A02B is a light, vivid green. Relative luminance 0.264; OKLCH L 62.5% C 0.177 H 140.4°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#40A02B
RGBrgb(64, 160, 43)
HSLhsl(109, 58%, 40%)
HSVhsv(109, 73%, 63%)
CMYKcmyk(60%, 0%, 73.1%, 37.3%)
CIE-LABlab(58.42, -49.85, 49.81)
CIE-LCHlch(58.42, 70.47, 135.03°)
OKLaboklab(62.5% -0.1366 0.1128)
OKLCHoklch(62.5% 0.177 140.4)
XYZxyz(15.1205, 26.4047, 6.5848)
Luminance0.2641 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A02B #8B2BA0
analogous
#7AA02B #40A02B #2BA051
triadic
#40A02B #2B40A0 #A02B40
tetradic
#40A02B #2B7AA0 #8B2BA0 #A0512B
square
#40A02B #2B7AA0 #8B2BA0 #A0512B
split-complementary
#40A02B #512BA0 #A02B7A
monochromatic
#194011 #2D701E #40A02B #57CB3D #81D86E

Accessibility & contrast

On white

3.34
#40A02B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#40A02B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40A02B
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40A02B#FFFFFF#000000##000000
##40A02B1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49117
Deuteranopia (green-blind)
#988937
Tritanopia (blue-blind)
#339B89
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #40a02b;
/* rgb */ color: rgb(64, 160, 43);
/* oklch */ color: oklch(62.5% 0.177 140.4);
Tailwind
colors: {
  custom: {
    50: '#80bd6c',
    500: '#40a02b',
    950: '#000000',
  },
}
SCSS
$custom: #40a02b;
$custom-light: #80bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#40a02b",
  "rgb": {
    "r": 64,
    "g": 160,
    "b": 43
  },
  "hsl": {
    "h": 109.231,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.62504,
    "c": 0.17716,
    "h": 140.4
  },
  "luminance": 0.26406
}

Semantic roles & 50–950 ramp

primary
#40A02B
secondary
#AF68BF
accent
#47E1C5
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A02B

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

Preview Lab → · Contrast checker → · Palette generator →

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