#42C851#42C851
#42C851 is a light, vivid green. Relative luminance 0.431; OKLCH L 73.5% C 0.198 H 145.0°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #42C851 |
|---|---|
| RGB | rgb(66, 200, 81) |
| HSL | hsl(127, 55%, 52%) |
| HSV | hsv(127, 67%, 78%) |
| CMYK | cmyk(67%, 0%, 59.5%, 21.6%) |
| CIE-LAB | lab(71.59, -59.85, 48.17) |
| CIE-LCH | lch(71.59, 76.83, 141.17°) |
| OKLab | oklab(73.52% -0.1619 0.1135) |
| OKLCH | oklch(73.52% 0.198 145) |
| XYZ | xyz(24.3847, 43.0583, 14.8090) |
| Luminance | 0.4306 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Shamrock Green
#02C14D
ΔE00 3.00
Lime Green
#32CD32
ΔE00 3.63
Leafy Green
#51B73B
ΔE00 5.07
Fresh Green
#69D84F
ΔE00 5.48
Apple
#6ECB3C
ΔE00 5.62
Emerald
#50C878
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42C851 #C842B9
analogous
#76C842 #42C851 #42C894
triadic
#42C851 #5142C8 #C85142
tetradic
#42C851 #4276C8 #C842B9 #C89442
square
#42C851 #4276C8 #C842B9 #C89442
split-complementary
#42C851 #9442C8 #C84276
monochromatic
#206F29 #2E9F3B #42C851 #71D67D #A1E4A8
Accessibility & contrast
On white
2.18
#42C851 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.61
#42C851 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #42C851
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42C851 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##42C851 | 1.00 | 2.18 | 9.61 | 9.61 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CBB644
Deuteranopia (green-blind)
#BBAB5B
Tritanopia (blue-blind)
#18C3AE
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #42c851; /* rgb */ color: rgb(66, 200, 81); /* oklch */ color: oklch(73.5% 0.198 145.0);
Tailwind
colors: {
custom: {
50: '#87da86',
500: '#42c851',
950: '#000000',
},
}SCSS
$custom: #42c851; $custom-light: #87da86; $custom-dark: #000000;
JSON
{
"hex": "#42c851",
"rgb": {
"r": 66,
"g": 200,
"b": 81
},
"hsl": {
"h": 126.716,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.73519,
"c": 0.19769,
"h": 145
},
"luminance": 0.43061
}Semantic roles & 50–950 ramp
primary
#42C851
secondary
#D096CA
accent
#4ACEDE
background
#F8FDF8
surface
#F0FBF0
border
#CBD4CB
text
#0D150B
muted
#7D837C