#42B040#42B040

#42B040 is a light, vivid green. Relative luminance 0.326; OKLCH L 67.0% C 0.181 H 143.0°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#42B040
RGBrgb(66, 176, 64)
HSLhsl(119, 47%, 47%)
HSVhsv(119, 64%, 69%)
CMYKcmyk(62.5%, 0%, 63.6%, 31%)
CIE-LABlab(63.82, -53.25, 46.92)
CIE-LCHlch(63.82, 70.98, 138.61°)
OKLaboklab(67.04% -0.1447 0.1092)
OKLCHoklch(67.04% 0.181 143)
XYZxyz(18.6965, 32.5773, 10.1523)
Luminance0.3258 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B040 #AE40B0
analogous
#7AB040 #42B040 #40B076
triadic
#42B040 #4042B0 #B04042
tetradic
#42B040 #407AB0 #AE40B0 #B07640
square
#42B040 #407AB0 #AE40B0 #B07640
split-complementary
#42B040 #7640B0 #B0407A
monochromatic
#20561F #318330 #42B040 #68C766 #94D893

Accessibility & contrast

On white

2.79
#42B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#42B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B040
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B040#FFFFFF#000000##000000
##42B0401.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A033
Deuteranopia (green-blind)
#A6974A
Tritanopia (blue-blind)
#2DAB98
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #42b040;
/* rgb */ color: rgb(66, 176, 64);
/* oklch */ color: oklch(67.0% 0.181 143.0);
Tailwind
colors: {
  custom: {
    50: '#83c979',
    500: '#42b040',
    950: '#000000',
  },
}
SCSS
$custom: #42b040;
$custom-light: #83c979;
$custom-dark: #000000;
JSON
{
  "hex": "#42b040",
  "rgb": {
    "r": 66,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 118.929,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.67036,
    "c": 0.18134,
    "h": 143
  },
  "luminance": 0.32579
}

Semantic roles & 50–950 ramp

primary
#42B040
secondary
#C289C3
accent
#51D6D4
background
#F8FCF7
surface
#F0F8EE
border
#CBD1C9
text
#0C1309
muted
#7D827B

Preview Lab

Preview with #42B040

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

Preview Lab → · Contrast checker → · Palette generator →

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