#42C562#42C562
#42C562 is a light, vivid green. Relative luminance 0.420; OKLCH L 73.0% C 0.180 H 148.1°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #42C562 |
|---|---|
| RGB | rgb(66, 197, 98) |
| HSL | hsl(135, 53%, 52%) |
| HSV | hsv(135, 66%, 77%) |
| CMYK | cmyk(66.5%, 0%, 50.3%, 22.7%) |
| CIE-LAB | lab(70.85, -56.51, 39.23) |
| CIE-LCH | lch(70.85, 68.80, 145.23°) |
| OKLab | oklab(72.97% -0.1524 0.095) |
| OKLCH | oklch(72.97% 0.18 148.1) |
| XYZ | xyz(24.4158, 41.9700, 18.3672) |
| Luminance | 0.4197 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Shamrock Green
#02C14D
ΔE00 3.10
Emerald
#50C878
ΔE00 3.36
Algae Green
#21C36F
ΔE00 3.39
Dark Mint
#48C072
ΔE00 3.47
Cool Green
#33B864
ΔE00 4.15
Dark Mint Green
#20C073
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42C562 #C542A5
analogous
#64C542 #42C562 #42C5A3
triadic
#42C562 #6242C5 #C56242
tetradic
#42C562 #4264C5 #C542A5 #C5A342
square
#42C562 #4264C5 #C542A5 #C5A342
split-complementary
#42C562 #A342C5 #C54264
monochromatic
#216C33 #2F9A4A #42C562 #71D389 #A0E2B0
Accessibility & contrast
On white
2.24
#42C562 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.39
#42C562 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #42C562
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42C562 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##42C562 | 1.00 | 2.24 | 9.39 | 9.39 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B45A
Deuteranopia (green-blind)
#B7A969
Tritanopia (blue-blind)
#0CC1AE
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #42c562; /* rgb */ color: rgb(66, 197, 98); /* oklch */ color: oklch(73.0% 0.180 148.1);
Tailwind
colors: {
custom: {
50: '#86d890',
500: '#42c562',
950: '#000000',
},
}SCSS
$custom: #42c562; $custom-light: #86d890; $custom-dark: #000000;
JSON
{
"hex": "#42c562",
"rgb": {
"r": 66,
"g": 197,
"b": 98
},
"hsl": {
"h": 134.656,
"s": 53.036,
"l": 51.569
},
"oklch": {
"l": 0.72968,
"c": 0.17957,
"h": 148.1
},
"luminance": 0.41973
}Semantic roles & 50–950 ramp
primary
#42C562
secondary
#CE95C0
accent
#4BB9DC
background
#F8FDF9
surface
#F0FAF1
border
#CBD3CB
text
#0C150D
muted
#7D837E