#42A040#42A040

#42A040 is a light, vivid green. Relative luminance 0.267; OKLCH L 62.8% C 0.161 H 143.0°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#42A040
RGBrgb(66, 160, 64)
HSLhsl(119, 43%, 44%)
HSVhsv(119, 60%, 63%)
CMYKcmyk(58.8%, 0%, 60%, 37.3%)
CIE-LABlab(58.67, -47.25, 41.08)
CIE-LCHlch(58.67, 62.61, 139.00°)
OKLaboklab(62.79% -0.1285 0.0967)
OKLCHoklch(62.79% 0.161 143)
XYZxyz(15.7421, 26.6686, 9.1675)
Luminance0.2667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A040 #9E40A0
analogous
#72A040 #42A040 #40A06E
triadic
#42A040 #4042A0 #A04042
tetradic
#42A040 #4072A0 #9E40A0 #A06E40
square
#42A040 #4072A0 #9E40A0 #A06E40
split-complementary
#42A040 #6E40A0 #A04072
monochromatic
#1E491D #30742F #42A040 #60BF5E #8CD08A

Accessibility & contrast

On white

3.32
#42A040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#42A040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A040
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A040#FFFFFF#000000##000000
##42A0401.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39236
Deuteranopia (green-blind)
#978A48
Tritanopia (blue-blind)
#329C8B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #42a040;
/* rgb */ color: rgb(66, 160, 64);
/* oklch */ color: oklch(62.8% 0.161 143.0);
Tailwind
colors: {
  custom: {
    50: '#80bd78',
    500: '#42a040',
    950: '#000000',
  },
}
SCSS
$custom: #42a040;
$custom-light: #80bd78;
$custom-dark: #000000;
JSON
{
  "hex": "#42a040",
  "rgb": {
    "r": 66,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 118.75,
    "s": 42.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.62785,
    "c": 0.16082,
    "h": 143
  },
  "luminance": 0.2667
}

Semantic roles & 50–950 ramp

primary
#42A040
secondary
#BA81BB
accent
#55D3D0
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #42A040

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

Preview Lab → · Contrast checker → · Palette generator →

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