#42A540#42A540

#42A540 is a light, vivid green. Relative luminance 0.284; OKLCH L 64.1% C 0.167 H 143.0°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#42A540
RGBrgb(66, 165, 64)
HSLhsl(119, 44%, 45%)
HSVhsv(119, 61%, 65%)
CMYKcmyk(60%, 0%, 61.2%, 35.3%)
CIE-LABlab(60.28, -49.17, 42.93)
CIE-LCHlch(60.28, 65.27, 138.87°)
OKLaboklab(64.12% -0.1337 0.1007)
OKLCHoklch(64.12% 0.167 143)
XYZxyz(16.6264, 28.4372, 9.4622)
Luminance0.2844 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A540 #A340A5
analogous
#74A540 #42A540 #40A571
triadic
#42A540 #4042A5 #A54042
tetradic
#42A540 #4074A5 #A340A5 #A57140
square
#42A540 #4074A5 #A340A5 #A57140
split-complementary
#42A540 #7140A5 #A54074
monochromatic
#1F4D1E #30792F #42A540 #63C261 #8ED38D

Accessibility & contrast

On white

3.14
#42A540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#42A540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A540
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A540#FFFFFF#000000##000000
##42A5401.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89635
Deuteranopia (green-blind)
#9C8E48
Tritanopia (blue-blind)
#31A08F
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #42a540;
/* rgb */ color: rgb(66, 165, 64);
/* oklch */ color: oklch(64.1% 0.167 143.0);
Tailwind
colors: {
  custom: {
    50: '#81c178',
    500: '#42a540',
    950: '#000000',
  },
}
SCSS
$custom: #42a540;
$custom-light: #81c178;
$custom-dark: #000000;
JSON
{
  "hex": "#42a540",
  "rgb": {
    "r": 66,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 118.812,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.64117,
    "c": 0.16737,
    "h": 143
  },
  "luminance": 0.28439
}

Semantic roles & 50–950 ramp

primary
#42A540
secondary
#BC83BE
accent
#54D4D1
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #42A540

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

Preview Lab → · Contrast checker → · Palette generator →

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