#42B951#42B951

#42B951 is a light, vivid green. Relative luminance 0.364; OKLCH L 69.6% C 0.179 H 145.5°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#42B951
RGBrgb(66, 185, 81)
HSLhsl(128, 47%, 49%)
HSVhsv(128, 64%, 73%)
CMYKcmyk(64.3%, 0%, 56.2%, 27.5%)
CIE-LABlab(66.86, -54.51, 42.63)
CIE-LCHlch(66.86, 69.20, 141.97°)
OKLaboklab(69.61% -0.1474 0.1015)
OKLCHoklch(69.61% 0.179 145.5)
XYZxyz(21.0796, 36.4481, 13.7073)
Luminance0.3645 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42B951 #B942AA
analogous
#6FB942 #42B951 #42B98D
triadic
#42B951 #5142B9 #B95142
tetradic
#42B951 #426FB9 #B942AA #B98D42
square
#42B951 #426FB9 #B942AA #B98D42
split-complementary
#42B951 #8D42B9 #B9426F
monochromatic
#225F2A #328C3D #42B951 #6DCB79 #9ADBA2

Accessibility & contrast

On white

2.53
#42B951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#42B951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #42B951
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42B951#FFFFFF#000000##000000
##42B9511.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA947
Deuteranopia (green-blind)
#AD9F59
Tritanopia (blue-blind)
#23B5A2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #42b951;
/* rgb */ color: rgb(66, 185, 81);
/* oklch */ color: oklch(69.6% 0.179 145.5);
Tailwind
colors: {
  custom: {
    50: '#84cf85',
    500: '#42b951',
    950: '#000000',
  },
}
SCSS
$custom: #42b951;
$custom-light: #84cf85;
$custom-dark: #000000;
JSON
{
  "hex": "#42b951",
  "rgb": {
    "r": 66,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 127.563,
    "s": 47.41,
    "l": 49.216
  },
  "oklch": {
    "l": 0.69607,
    "c": 0.17895,
    "h": 145.5
  },
  "luminance": 0.3645
}

Semantic roles & 50–950 ramp

primary
#42B951
secondary
#C790C0
accent
#51C6D7
background
#F8FCF8
surface
#F0F9EF
border
#CBD2CA
text
#0C140B
muted
#7D827C

Preview Lab

Preview with #42B951

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

Preview Lab → · Contrast checker → · Palette generator →

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