#42C158#42C158

#42C158 is a light, vivid green. Relative luminance 0.400; OKLCH L 71.8% C 0.183 H 146.4°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#42C158
RGBrgb(66, 193, 88)
HSLhsl(130, 51%, 51%)
HSVhsv(130, 66%, 76%)
CMYKcmyk(65.8%, 0%, 54.4%, 24.3%)
CIE-LABlab(69.47, -56.48, 42.41)
CIE-LCHlch(69.47, 70.63, 143.10°)
OKLaboklab(71.79% -0.1525 0.1015)
OKLCHoklch(71.79% 0.183 146.4)
XYZxyz(23.0766, 40.0004, 15.7353)
Luminance0.4000 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42C158 #C142AB
analogous
#6BC142 #42C158 #42C198
triadic
#42C158 #5842C1 #C15842
tetradic
#42C158 #426BC1 #C142AB #C19842
square
#42C158 #426BC1 #C142AB #C19842
split-complementary
#42C158 #9842C1 #C1426B
monochromatic
#22672E #319542 #42C158 #70D081 #9EDFA9

Accessibility & contrast

On white

2.33
#42C158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#42C158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42C158
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42C158#FFFFFF#000000##000000
##42C1581.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4B04E
Deuteranopia (green-blind)
#B4A560
Tritanopia (blue-blind)
#1ABDA9
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #42c158;
/* rgb */ color: rgb(66, 193, 88);
/* oklch */ color: oklch(71.8% 0.183 146.4);
Tailwind
colors: {
  custom: {
    50: '#85d58a',
    500: '#42c158',
    950: '#000000',
  },
}
SCSS
$custom: #42c158;
$custom-light: #85d58a;
$custom-dark: #000000;
JSON
{
  "hex": "#42c158",
  "rgb": {
    "r": 66,
    "g": 193,
    "b": 88
  },
  "hsl": {
    "h": 130.394,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.71787,
    "c": 0.18318,
    "h": 146.4
  },
  "luminance": 0.40003
}

Semantic roles & 50–950 ramp

primary
#42C158
secondary
#CC93C2
accent
#4EC2DA
background
#F8FDF8
surface
#F0FAF0
border
#CBD3CB
text
#0C140C
muted
#7D837D

Preview Lab

Preview with #42C158

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

Preview Lab → · Contrast checker → · Palette generator →

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