#40B42F#40B42F

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

Color values

HEX#40B42F
RGBrgb(64, 180, 47)
HSLhsl(112, 59%, 45%)
HSVhsv(112, 74%, 71%)
CMYKcmyk(64.4%, 0%, 73.9%, 29.4%)
CIE-LABlab(64.91, -56.67, 54.90)
CIE-LCHlch(64.91, 78.91, 135.91°)
OKLaboklab(67.88% -0.1548 0.124)
OKLCHoklch(67.88% 0.198 141.3)
XYZxyz(18.9477, 33.9359, 8.2405)
Luminance0.3394 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B42F #A32FB4
analogous
#83B42F #40B42F #2FB461
triadic
#40B42F #2F40B4 #B42F40
tetradic
#40B42F #2F83B4 #A32FB4 #B4612F
square
#40B42F #2F83B4 #A32FB4 #B4612F
split-complementary
#40B42F #612FB4 #B42F83
monochromatic
#1D5316 #2F8322 #40B42F #60D14F #8CDE80

Accessibility & contrast

On white

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

On black

7.79
#40B42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B42F
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B42F#FFFFFF#000000##000000
##40B42F1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40b42f;
/* rgb */ color: rgb(64, 180, 47);
/* oklch */ color: oklch(67.9% 0.198 141.3);
Tailwind
colors: {
  custom: {
    50: '#84cb70',
    500: '#40b42f',
    950: '#000000',
  },
}
SCSS
$custom: #40b42f;
$custom-light: #84cb70;
$custom-dark: #000000;
JSON
{
  "hex": "#40b42f",
  "rgb": {
    "r": 64,
    "g": 180,
    "b": 47
  },
  "hsl": {
    "h": 112.331,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67883,
    "c": 0.19835,
    "h": 141.3
  },
  "luminance": 0.33938
}

Semantic roles & 50–950 ramp

primary
#40B42F
secondary
#BD78C7
accent
#46E2CE
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #40B42F

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

Preview Lab → · Contrast checker → · Palette generator →

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