#40C742#40C742

#40C742 is a light, highly saturated green. Relative luminance 0.423; OKLCH L 73.0% C 0.208 H 143.3°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#40C742
RGBrgb(64, 199, 66)
HSLhsl(121, 55%, 52%)
HSVhsv(121, 68%, 78%)
CMYKcmyk(67.8%, 0%, 66.8%, 22%)
CIE-LABlab(71.10, -61.51, 54.05)
CIE-LCHlch(71.10, 81.88, 138.69°)
OKLaboklab(73.05% -0.1669 0.1246)
OKLCHoklch(73.05% 0.208 143.3)
XYZxyz(23.5197, 42.3277, 12.0838)
Luminance0.4233 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40C742 #C740C5
analogous
#82C740 #40C742 #40C786
triadic
#40C742 #4240C7 #C74240
tetradic
#40C742 #4082C7 #C740C5 #C78640
square
#40C742 #4082C7 #C740C5 #C78640
split-complementary
#40C742 #8640C7 #C74082
monochromatic
#206D21 #2E9C2F #40C742 #6FD571 #9FE3A0

Accessibility & contrast

On white

2.22
#40C742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#40C742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #40C742
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40C742#FFFFFF#000000##000000
##40C7421.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB530
Deuteranopia (green-blind)
#BBAA4E
Tritanopia (blue-blind)
#1BC1AC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #40c742;
/* rgb */ color: rgb(64, 199, 66);
/* oklch */ color: oklch(73.0% 0.208 143.3);
Tailwind
colors: {
  custom: {
    50: '#87d97c',
    500: '#40c742',
    950: '#000000',
  },
}
SCSS
$custom: #40c742;
$custom-light: #87d97c;
$custom-dark: #000000;
JSON
{
  "hex": "#40c742",
  "rgb": {
    "r": 64,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 120.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.73049,
    "c": 0.20826,
    "h": 143.3
  },
  "luminance": 0.4233
}

Semantic roles & 50–950 ramp

primary
#40C742
secondary
#CF94CE
accent
#4ADCDE
background
#F9FDF7
surface
#F1FBEE
border
#CBD4C9
text
#0D150A
muted
#7E837C

Preview Lab

Preview with #40C742

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

Preview Lab → · Contrast checker → · Palette generator →

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