#42D940#42D940

#42D940 is a light, highly saturated green. Relative luminance 0.512; OKLCH L 77.8% C 0.229 H 142.8°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#42D940
RGBrgb(66, 217, 64)
HSLhsl(119, 67%, 55%)
HSVhsv(119, 71%, 85%)
CMYKcmyk(69.6%, 0%, 70.5%, 14.9%)
CIE-LABlab(76.77, -67.25, 60.84)
CIE-LCHlch(76.77, 90.69, 137.86°)
OKLaboklab(77.76% -0.1827 0.1386)
OKLCHoklch(77.76% 0.229 142.8)
XYZxyz(27.9834, 51.1511, 13.2479)
Luminance0.5115 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42D940 #D740D9
analogous
#8ED940 #42D940 #40D98B
triadic
#42D940 #4042D9 #D94042
tetradic
#42D940 #408ED9 #D740D9 #D98B40
square
#42D940 #408ED9 #D740D9 #D98B40
split-complementary
#42D940 #8B40D9 #D9408E
monochromatic
#1C841A #26B724 #42D940 #75E373 #A7EDA6

Accessibility & contrast

On white

1.87
#42D940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#42D940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42D940
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42D940#FFFFFF#000000##000000
##42D9401.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC527
Deuteranopia (green-blind)
#CCB94F
Tritanopia (blue-blind)
#12D3BB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #42d940;
/* rgb */ color: rgb(66, 217, 64);
/* oklch */ color: oklch(77.8% 0.229 142.8);
Tailwind
colors: {
  custom: {
    50: '#8be67d',
    500: '#42d940',
    950: '#000000',
  },
}
SCSS
$custom: #42d940;
$custom-light: #8be67d;
$custom-dark: #000000;
JSON
{
  "hex": "#42d940",
  "rgb": {
    "r": 66,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 119.216,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.7776,
    "c": 0.22928,
    "h": 142.8
  },
  "luminance": 0.51154
}

Semantic roles & 50–950 ramp

primary
#42D940
secondary
#8A328B
accent
#3EEAE7
background
#FCFEFB
surface
#F5FDF2
border
#CFD5CC
text
#0E160A
muted
#7F847D

Preview Lab

Preview with #42D940

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

Preview Lab → · Contrast checker → · Palette generator →

#42D940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva