#40A02C#40A02C

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

Color values

HEX#40A02C
RGBrgb(64, 160, 44)
HSLhsl(110, 57%, 40%)
HSVhsv(110, 73%, 63%)
CMYKcmyk(60%, 0%, 72.5%, 37.3%)
CIE-LABlab(58.43, -49.77, 49.43)
CIE-LCHlch(58.43, 70.14, 135.20°)
OKLaboklab(62.51% -0.1363 0.1122)
OKLCHoklch(62.51% 0.177 140.5)
XYZxyz(15.1391, 26.4121, 6.6826)
Luminance0.2641 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40A02C #8C2CA0
analogous
#7AA02C #40A02C #2CA052
triadic
#40A02C #2C40A0 #A02C40
tetradic
#40A02C #2C7AA0 #8C2CA0 #A0522C
square
#40A02C #2C7AA0 #8C2CA0 #A0522C
split-complementary
#40A02C #522CA0 #A02C7A
monochromatic
#1A4012 #2D701F #40A02C #57CA3F #81D76F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40A02C#FFFFFF#000000##000000
##40A02C1.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)
#A49118
Deuteranopia (green-blind)
#988938
Tritanopia (blue-blind)
#339B89
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #40a02c;
/* rgb */ color: rgb(64, 160, 44);
/* oklch */ color: oklch(62.5% 0.177 140.5);
Tailwind
colors: {
  custom: {
    50: '#80bd6c',
    500: '#40a02c',
    950: '#000000',
  },
}
SCSS
$custom: #40a02c;
$custom-light: #80bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#40a02c",
  "rgb": {
    "r": 64,
    "g": 160,
    "b": 44
  },
  "hsl": {
    "h": 109.655,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.62512,
    "c": 0.17653,
    "h": 140.5
  },
  "luminance": 0.26413
}

Semantic roles & 50–950 ramp

primary
#40A02C
secondary
#B069BF
accent
#48E0C6
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #40A02C

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

Preview Lab → · Contrast checker → · Palette generator →

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