#42C052#42C052

#42C052 is a light, vivid green. Relative luminance 0.395; OKLCH L 71.4% C 0.187 H 145.4°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#42C052
RGBrgb(66, 192, 82)
HSLhsl(128, 50%, 51%)
HSVhsv(128, 66%, 75%)
CMYKcmyk(65.6%, 0%, 57.3%, 24.7%)
CIE-LABlab(69.09, -56.91, 44.79)
CIE-LCHlch(69.09, 72.42, 141.80°)
OKLaboklab(71.45% -0.1539 0.1063)
OKLCHoklch(71.45% 0.187 145.4)
XYZxyz(22.6179, 39.4644, 14.4064)
Luminance0.3947 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42C052 #C042B0
analogous
#71C042 #42C052 #42C091
triadic
#42C052 #5242C0 #C05242
tetradic
#42C052 #4271C0 #C042B0 #C09142
square
#42C052 #4271C0 #C042B0 #C09142
split-complementary
#42C052 #9142C0 #C04271
monochromatic
#22662B #31943E #42C052 #70CF7C #9EDFA6

Accessibility & contrast

On white

2.36
#42C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#42C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42C052
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42C052#FFFFFF#000000##000000
##42C0521.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF47
Deuteranopia (green-blind)
#B4A55B
Tritanopia (blue-blind)
#1EBBA8
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #42c052;
/* rgb */ color: rgb(66, 192, 82);
/* oklch */ color: oklch(71.4% 0.187 145.4);
Tailwind
colors: {
  custom: {
    50: '#85d486',
    500: '#42c052',
    950: '#000000',
  },
}
SCSS
$custom: #42c052;
$custom-light: #85d486;
$custom-dark: #000000;
JSON
{
  "hex": "#42c052",
  "rgb": {
    "r": 66,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 127.619,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.71448,
    "c": 0.18698,
    "h": 145.4
  },
  "luminance": 0.39467
}

Semantic roles & 50–950 ramp

primary
#42C052
secondary
#CB93C4
accent
#4EC8DA
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C

Preview Lab

Preview with #42C052

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

Preview Lab → · Contrast checker → · Palette generator →

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