#42AC31#42AC31

#42AC31 is a light, vivid green. Relative luminance 0.309; OKLCH L 65.8% C 0.187 H 141.1°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#42AC31
RGBrgb(66, 172, 49)
HSLhsl(112, 56%, 43%)
HSVhsv(112, 72%, 67%)
CMYKcmyk(61.6%, 0%, 71.5%, 32.5%)
CIE-LABlab(62.41, -53.24, 51.63)
CIE-LCHlch(62.41, 74.16, 135.88°)
OKLaboklab(65.83% -0.1455 0.1174)
OKLCHoklch(65.83% 0.187 141.1)
XYZxyz(17.5528, 30.8834, 7.9412)
Luminance0.3089 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42AC31 #9B31AC
analogous
#7FAC31 #42AC31 #31AC5D
triadic
#42AC31 #3142AC #AC3142
tetradic
#42AC31 #317FAC #9B31AC #AC5D31
square
#42AC31 #317FAC #9B31AC #AC5D31
split-complementary
#42AC31 #5D31AC #AC317F
monochromatic
#1D4D16 #307C23 #42AC31 #5FCC4E #8ADA7D

Accessibility & contrast

On white

2.93
#42AC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#42AC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42AC31
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42AC31#FFFFFF#000000##000000
##42AC311.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1D
Deuteranopia (green-blind)
#A3943D
Tritanopia (blue-blind)
#31A794
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #42ac31;
/* rgb */ color: rgb(66, 172, 49);
/* oklch */ color: oklch(65.8% 0.187 141.1);
Tailwind
colors: {
  custom: {
    50: '#83c670',
    500: '#42ac31',
    950: '#000000',
  },
}
SCSS
$custom: #42ac31;
$custom-light: #83c670;
$custom-dark: #000000;
JSON
{
  "hex": "#42ac31",
  "rgb": {
    "r": 66,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 111.707,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.65833,
    "c": 0.18698,
    "h": 141.1
  },
  "luminance": 0.30885
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42AC31

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

Preview Lab → · Contrast checker → · Palette generator →

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