#42C852#42C852

#42C852 is a light, vivid green. Relative luminance 0.431; OKLCH L 73.5% C 0.197 H 145.1°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#42C852
RGBrgb(66, 200, 82)
HSLhsl(127, 55%, 52%)
HSVhsv(127, 67%, 78%)
CMYKcmyk(67%, 0%, 59%, 21.6%)
CIE-LABlab(71.60, -59.73, 47.73)
CIE-LCHlch(71.60, 76.46, 141.37°)
OKLaboklab(73.53% -0.1615 0.1126)
OKLCHoklch(73.53% 0.197 145.1)
XYZxyz(24.4224, 43.0734, 15.0079)
Luminance0.4308 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42C852 #C842B8
analogous
#75C842 #42C852 #42C895
triadic
#42C852 #5242C8 #C85242
tetradic
#42C852 #4275C8 #C842B8 #C89542
square
#42C852 #4275C8 #C842B8 #C89542
split-complementary
#42C852 #9542C8 #C84275
monochromatic
#206F2A #2E9F3C #42C852 #71D67D #A1E4A9

Accessibility & contrast

On white

2.18
#42C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#42C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42C852
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42C852#FFFFFF#000000##000000
##42C8521.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB646
Deuteranopia (green-blind)
#BBAB5C
Tritanopia (blue-blind)
#18C3AE
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #42c852;
/* rgb */ color: rgb(66, 200, 82);
/* oklch */ color: oklch(73.5% 0.197 145.1);
Tailwind
colors: {
  custom: {
    50: '#87da86',
    500: '#42c852',
    950: '#000000',
  },
}
SCSS
$custom: #42c852;
$custom-light: #87da86;
$custom-dark: #000000;
JSON
{
  "hex": "#42c852",
  "rgb": {
    "r": 66,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 127.164,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.73531,
    "c": 0.1969,
    "h": 145.1
  },
  "luminance": 0.43076
}

Semantic roles & 50–950 ramp

primary
#42C852
secondary
#D096C9
accent
#4ACCDE
background
#F8FDF8
surface
#F0FBF0
border
#CBD4CB
text
#0D150B
muted
#7D837C

Preview Lab

Preview with #42C852

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

Preview Lab → · Contrast checker → · Palette generator →

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