#42C162#42C162

#42C162 is a light, vivid green. Relative luminance 0.402; OKLCH L 71.9% C 0.174 H 148.4°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#42C162
RGBrgb(66, 193, 98)
HSLhsl(135, 51%, 51%)
HSVhsv(135, 66%, 76%)
CMYKcmyk(65.8%, 0%, 49.2%, 24.3%)
CIE-LABlab(69.60, -55.04, 37.67)
CIE-LCHlch(69.60, 66.70, 145.61°)
OKLaboklab(71.93% -0.1484 0.0915)
OKLCHoklch(71.93% 0.174 148.4)
XYZxyz(23.5196, 40.1776, 18.0685)
Luminance0.4018 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42C162 #C142A1
analogous
#61C142 #42C162 #42C1A1
triadic
#42C162 #6242C1 #C16242
tetradic
#42C162 #4261C1 #C142A1 #C1A142
square
#42C162 #4261C1 #C142A1 #C1A142
split-complementary
#42C162 #A142C1 #C14261
monochromatic
#226733 #31954A #42C162 #70D088 #9EDFAF

Accessibility & contrast

On white

2.32
#42C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.04
#42C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42C162
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42C162#FFFFFF#000000##000000
##42C1621.002.329.049.04
#FFFFFF2.321.0021.0021.00
#0000009.0421.001.001.00
##0000009.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3B15A
Deuteranopia (green-blind)
#B3A669
Tritanopia (blue-blind)
#11BDAB
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #42c162;
/* rgb */ color: rgb(66, 193, 98);
/* oklch */ color: oklch(71.9% 0.174 148.4);
Tailwind
colors: {
  custom: {
    50: '#85d590',
    500: '#42c162',
    950: '#000000',
  },
}
SCSS
$custom: #42c162;
$custom-light: #85d590;
$custom-dark: #000000;
JSON
{
  "hex": "#42c162",
  "rgb": {
    "r": 66,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 135.118,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.71932,
    "c": 0.17437,
    "h": 148.4
  },
  "luminance": 0.4018
}

Semantic roles & 50–950 ramp

primary
#42C162
secondary
#CC93BD
accent
#4EB7DA
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140D
muted
#7D837D

Preview Lab

Preview with #42C162

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

Preview Lab → · Contrast checker → · Palette generator →

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