#42AB31#42AB31

#42AB31 is a light, vivid green. Relative luminance 0.305; OKLCH L 65.6% C 0.186 H 141.1°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#42AB31
RGBrgb(66, 171, 49)
HSLhsl(112, 55%, 43%)
HSVhsv(112, 71%, 67%)
CMYKcmyk(61.4%, 0%, 71.3%, 32.9%)
CIE-LABlab(62.09, -52.88, 51.29)
CIE-LCHlch(62.09, 73.67, 135.87°)
OKLaboklab(65.57% -0.1446 0.1167)
OKLCHoklch(65.57% 0.186 141.1)
XYZxyz(17.3632, 30.5042, 7.8780)
Luminance0.3051 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42AB31 #9A31AB
analogous
#7FAB31 #42AB31 #31AB5D
triadic
#42AB31 #3142AB #AB3142
tetradic
#42AB31 #317FAB #9A31AB #AB5D31
square
#42AB31 #317FAB #9A31AB #AB5D31
split-complementary
#42AB31 #5D31AB #AB317F
monochromatic
#1D4C16 #307B23 #42AB31 #5FCC4D #8ADA7D

Accessibility & contrast

On white

2.96
#42AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#42AB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42AB31
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42AB31#FFFFFF#000000##000000
##42AB311.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1D
Deuteranopia (green-blind)
#A2933D
Tritanopia (blue-blind)
#32A693
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #42ab31;
/* rgb */ color: rgb(66, 171, 49);
/* oklch */ color: oklch(65.6% 0.186 141.1);
Tailwind
colors: {
  custom: {
    50: '#83c570',
    500: '#42ab31',
    950: '#000000',
  },
}
SCSS
$custom: #42ab31;
$custom-light: #83c570;
$custom-dark: #000000;
JSON
{
  "hex": "#42ab31",
  "rgb": {
    "r": 66,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 111.639,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.65566,
    "c": 0.18578,
    "h": 141.1
  },
  "luminance": 0.30506
}

Semantic roles & 50–950 ramp

primary
#42AB31
secondary
#B875C2
accent
#49DFCA
background
#F8FCF7
surface
#F0F8ED
border
#CBD1C8
text
#0C1308
muted
#7D827B

Preview Lab

Preview with #42AB31

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

Preview Lab → · Contrast checker → · Palette generator →

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