#42B540#42B540

#42B540 is a light, vivid green. Relative luminance 0.346; OKLCH L 68.4% C 0.188 H 142.9°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#42B540
RGBrgb(66, 181, 64)
HSLhsl(119, 48%, 48%)
HSVhsv(119, 65%, 71%)
CMYKcmyk(63.5%, 0%, 64.6%, 29%)
CIE-LABlab(65.42, -55.06, 48.70)
CIE-LCHlch(65.42, 73.50, 138.50°)
OKLaboklab(68.36% -0.1496 0.113)
OKLCHoklch(68.36% 0.188 142.9)
XYZxyz(19.6949, 34.5742, 10.4851)
Luminance0.3458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B540 #B340B5
analogous
#7DB540 #42B540 #40B578
triadic
#42B540 #4042B5 #B54042
tetradic
#42B540 #407DB5 #B340B5 #B57840
square
#42B540 #407DB5 #B340B5 #B57840
split-complementary
#42B540 #7840B5 #B5407D
monochromatic
#215B20 #328830 #42B540 #6ACA68 #97DA96

Accessibility & contrast

On white

2.65
#42B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#42B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B540
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B540#FFFFFF#000000##000000
##42B5401.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A532
Deuteranopia (green-blind)
#AB9B4A
Tritanopia (blue-blind)
#2BB09D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #42b540;
/* rgb */ color: rgb(66, 181, 64);
/* oklch */ color: oklch(68.4% 0.188 142.9);
Tailwind
colors: {
  custom: {
    50: '#84cc7a',
    500: '#42b540',
    950: '#000000',
  },
}
SCSS
$custom: #42b540;
$custom-light: #84cc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#42b540",
  "rgb": {
    "r": 66,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 118.974,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.68357,
    "c": 0.18752,
    "h": 142.9
  },
  "luminance": 0.34576
}

Semantic roles & 50–950 ramp

primary
#42B540
secondary
#C48BC5
accent
#50D7D5
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #42B540

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

Preview Lab → · Contrast checker → · Palette generator →

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