#42C951#42C951
#42C951 is a light, vivid green. Relative luminance 0.435; OKLCH L 73.8% C 0.199 H 144.9°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #42C951 |
|---|---|
| RGB | rgb(66, 201, 81) |
| HSL | hsl(127, 56%, 52%) |
| HSV | hsv(127, 67%, 79%) |
| CMYK | cmyk(67.2%, 0%, 59.7%, 21.2%) |
| CIE-LAB | lab(71.91, -60.20, 48.53) |
| CIE-LCH | lch(71.91, 77.33, 141.12°) |
| OKLab | oklab(73.78% -0.1628 0.1143) |
| OKLCH | oklch(73.78% 0.199 144.9) |
| XYZ | xyz(24.6170, 43.5230, 14.8864) |
| Luminance | 0.4353 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Shamrock Green
#02C14D
ΔE00 3.19
Lime Green
#32CD32
ΔE00 3.48
Leafy Green
#51B73B
ΔE00 5.26
Fresh Green
#69D84F
ΔE00 5.26
Apple
#6ECB3C
ΔE00 5.53
Emerald
#50C878
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42C951 #C942BA
analogous
#76C942 #42C951 #42C995
triadic
#42C951 #5142C9 #C95142
tetradic
#42C951 #4276C9 #C942BA #C99542
square
#42C951 #4276C9 #C942BA #C99542
split-complementary
#42C951 #9542C9 #C94276
monochromatic
#207029 #2EA03A #42C951 #72D77D #A1E4A9
Accessibility & contrast
On white
2.16
#42C951 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.71
#42C951 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #42C951
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42C951 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##42C951 | 1.00 | 2.16 | 9.71 | 9.71 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CCB744
Deuteranopia (green-blind)
#BCAC5B
Tritanopia (blue-blind)
#18C4AF
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #42c951; /* rgb */ color: rgb(66, 201, 81); /* oklch */ color: oklch(73.8% 0.199 144.9);
Tailwind
colors: {
custom: {
50: '#87db86',
500: '#42c951',
950: '#000000',
},
}SCSS
$custom: #42c951; $custom-light: #87db86; $custom-dark: #000000;
JSON
{
"hex": "#42c951",
"rgb": {
"r": 66,
"g": 201,
"b": 81
},
"hsl": {
"h": 126.667,
"s": 55.556,
"l": 52.353
},
"oklch": {
"l": 0.73779,
"c": 0.19891,
"h": 144.9
},
"luminance": 0.43526
}Semantic roles & 50–950 ramp
primary
#42C951
secondary
#D196CA
accent
#49CEDF
background
#F9FDF8
surface
#F1FBF0
border
#CBD4CB
text
#0D150B
muted
#7E837C