#40B42D#40B42D

#40B42D is a light, vivid green. Relative luminance 0.339; OKLCH L 67.9% C 0.199 H 141.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#40B42D
RGBrgb(64, 180, 45)
HSLhsl(112, 60%, 44%)
HSVhsv(112, 75%, 71%)
CMYKcmyk(64.4%, 0%, 75%, 29.4%)
CIE-LABlab(64.90, -56.82, 55.60)
CIE-LCHlch(64.90, 79.50, 135.62°)
OKLaboklab(67.87% -0.1553 0.1252)
OKLCHoklch(67.87% 0.199 141.1)
XYZxyz(18.9083, 33.9201, 8.0329)
Luminance0.3392 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B42D #A12DB4
analogous
#84B42D #40B42D #2DB45E
triadic
#40B42D #2D40B4 #B42D40
tetradic
#40B42D #2D84B4 #A12DB4 #B45E2D
square
#40B42D #2D84B4 #A12DB4 #B45E2D
split-complementary
#40B42D #5E2DB4 #B42D84
monochromatic
#1D5215 #2F8321 #40B42D #5FD24C #8BDE7D

Accessibility & contrast

On white

2.70
#40B42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#40B42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B42D
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B42D#FFFFFF#000000##000000
##40B42D1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A311
Deuteranopia (green-blind)
#AB9A3B
Tritanopia (blue-blind)
#2BAE9A
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #40b42d;
/* rgb */ color: rgb(64, 180, 45);
/* oklch */ color: oklch(67.9% 0.199 141.1);
Tailwind
colors: {
  custom: {
    50: '#84cb6f',
    500: '#40b42d',
    950: '#000000',
  },
}
SCSS
$custom: #40b42d;
$custom-light: #84cb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#40b42d",
  "rgb": {
    "r": 64,
    "g": 180,
    "b": 45
  },
  "hsl": {
    "h": 111.556,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.67868,
    "c": 0.19948,
    "h": 141.1
  },
  "luminance": 0.33922
}

Semantic roles & 50–950 ramp

primary
#40B42D
secondary
#BC76C7
accent
#45E3CD
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40B42D

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

Preview Lab → · Contrast checker → · Palette generator →

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