#42C062#42C062

#42C062 is a light, vivid green. Relative luminance 0.397; OKLCH L 71.7% C 0.173 H 148.4°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#42C062
RGBrgb(66, 192, 98)
HSLhsl(135, 50%, 51%)
HSVhsv(135, 66%, 75%)
CMYKcmyk(65.6%, 0%, 49%, 24.7%)
CIE-LABlab(69.28, -54.67, 37.28)
CIE-LCHlch(69.28, 66.17, 145.71°)
OKLaboklab(71.67% -0.1474 0.0906)
OKLCHoklch(71.67% 0.173 148.4)
XYZxyz(23.2993, 39.7369, 17.9950)
Luminance0.3974 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42C062 #C042A0
analogous
#61C042 #42C062 #42C0A1
triadic
#42C062 #6242C0 #C06242
tetradic
#42C062 #4261C0 #C042A0 #C0A142
square
#42C062 #4261C0 #C042A0 #C0A142
split-complementary
#42C062 #A142C0 #C04261
monochromatic
#226633 #31944A #42C062 #70CF88 #9EDFAE

Accessibility & contrast

On white

2.35
#42C062 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#42C062 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42C062
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42C062#FFFFFF#000000##000000
##42C0621.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2B05A
Deuteranopia (green-blind)
#B2A569
Tritanopia (blue-blind)
#12BCAA
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #42c062;
/* rgb */ color: rgb(66, 192, 98);
/* oklch */ color: oklch(71.7% 0.173 148.4);
Tailwind
colors: {
  custom: {
    50: '#85d490',
    500: '#42c062',
    950: '#000000',
  },
}
SCSS
$custom: #42c062;
$custom-light: #85d490;
$custom-dark: #000000;
JSON
{
  "hex": "#42c062",
  "rgb": {
    "r": 66,
    "g": 192,
    "b": 98
  },
  "hsl": {
    "h": 135.238,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.71673,
    "c": 0.17306,
    "h": 148.4
  },
  "luminance": 0.39739
}

Semantic roles & 50–950 ramp

primary
#42C062
secondary
#CB93BD
accent
#4EB6DA
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140D
muted
#7D837D

Preview Lab

Preview with #42C062

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

Preview Lab → · Contrast checker → · Palette generator →

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