#42A242#42A242

#42A242 is a light, vivid green. Relative luminance 0.274; OKLCH L 63.3% C 0.162 H 143.4°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#42A242
RGBrgb(66, 162, 66)
HSLhsl(120, 42%, 45%)
HSVhsv(120, 59%, 64%)
CMYKcmyk(59.3%, 0%, 59.3%, 36.5%)
CIE-LABlab(59.33, -47.78, 40.90)
CIE-LCHlch(59.33, 62.90, 139.43°)
OKLaboklab(63.34% -0.1298 0.0965)
OKLCHoklch(63.34% 0.162 143.4)
XYZxyz(16.1496, 27.3908, 9.5891)
Luminance0.2739 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42A242 #A242A2
analogous
#72A242 #42A242 #42A272
triadic
#42A242 #4242A2 #A24242
tetradic
#42A242 #4272A2 #A242A2 #A27242
square
#42A242 #4272A2 #A242A2 #A27242
split-complementary
#42A242 #7242A2 #A24272
monochromatic
#1F4B1F #307730 #42A242 #62BF62 #8ED18E

Accessibility & contrast

On white

3.24
#42A242 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#42A242 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42A242
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42A242#FFFFFF#000000##000000
##42A2421.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59438
Deuteranopia (green-blind)
#998C4A
Tritanopia (blue-blind)
#319E8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #42a242;
/* rgb */ color: rgb(66, 162, 66);
/* oklch */ color: oklch(63.3% 0.162 143.4);
Tailwind
colors: {
  custom: {
    50: '#80be79',
    500: '#42a242',
    950: '#000000',
  },
}
SCSS
$custom: #42a242;
$custom-light: #80be79;
$custom-dark: #000000;
JSON
{
  "hex": "#42a242",
  "rgb": {
    "r": 66,
    "g": 162,
    "b": 66
  },
  "hsl": {
    "h": 120,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.63343,
    "c": 0.16178,
    "h": 143.4
  },
  "luminance": 0.27392
}

Semantic roles & 50–950 ramp

primary
#42A242
secondary
#BC84BC
accent
#56D2D2
background
#F8FBF7
surface
#EFF7EE
border
#CAD0C9
text
#0B1209
muted
#7C817B

Preview Lab

Preview with #42A242

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

Preview Lab → · Contrast checker → · Palette generator →

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