#40B042#40B042

#40B042 is a light, vivid green. Relative luminance 0.325; OKLCH L 67.0% C 0.181 H 143.5°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#40B042
RGBrgb(64, 176, 66)
HSLhsl(121, 47%, 47%)
HSVhsv(121, 64%, 69%)
CMYKcmyk(63.6%, 0%, 62.5%, 31%)
CIE-LABlab(63.78, -53.48, 45.98)
CIE-LCHlch(63.78, 70.53, 139.31°)
OKLaboklab(67% -0.1452 0.1074)
OKLCHoklch(67% 0.181 143.5)
XYZxyz(18.6220, 32.5322, 10.4512)
Luminance0.3253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40B042 #B040AE
analogous
#76B040 #40B042 #40B07A
triadic
#40B042 #4240B0 #B04240
tetradic
#40B042 #4076B0 #B040AE #B07A40
square
#40B042 #4076B0 #B040AE #B07A40
split-complementary
#40B042 #7A40B0 #B04076
monochromatic
#1F5620 #308331 #40B042 #66C768 #93D894

Accessibility & contrast

On white

2.80
#40B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#40B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40B042
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40B042#FFFFFF#000000##000000
##40B0421.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A035
Deuteranopia (green-blind)
#A6974B
Tritanopia (blue-blind)
#28AB99
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #40b042;
/* rgb */ color: rgb(64, 176, 66);
/* oklch */ color: oklch(67.0% 0.181 143.5);
Tailwind
colors: {
  custom: {
    50: '#82c97a',
    500: '#40b042',
    950: '#000000',
  },
}
SCSS
$custom: #40b042;
$custom-light: #82c97a;
$custom-dark: #000000;
JSON
{
  "hex": "#40b042",
  "rgb": {
    "r": 64,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 121.071,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.66996,
    "c": 0.1806,
    "h": 143.5
  },
  "luminance": 0.32534
}

Semantic roles & 50–950 ramp

primary
#40B042
secondary
#C389C2
accent
#51D4D6
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #40B042

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

Preview Lab → · Contrast checker → · Palette generator →

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