#40C252#40C252
#40C252 is a light, vivid green. Relative luminance 0.403; OKLCH L 71.9% C 0.190 H 145.5°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #40C252 |
|---|---|
| RGB | rgb(64, 194, 82) |
| HSL | hsl(128, 52%, 51%) |
| HSV | hsv(128, 67%, 76%) |
| CMYK | cmyk(67%, 0%, 57.7%, 23.9%) |
| CIE-LAB | lab(69.67, -58.01, 45.46) |
| CIE-LCH | lch(69.67, 73.70, 141.92°) |
| OKLab | oklab(71.92% -0.1568 0.1077) |
| OKLCH | oklch(71.92% 0.19 145.5) |
| XYZ | xyz(22.9276, 40.2803, 14.5476) |
| Luminance | 0.4028 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Shamrock Green
#02C14D
ΔE00 2.08
Leafy Green
#51B73B
ΔE00 4.23
Shamrock
#01B44C
ΔE00 4.70
Lime Green
#32CD32
ΔE00 4.89
Cool Green
#33B864
ΔE00 5.00
Algae Green
#21C36F
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#40C252 #C240B0
analogous
#6FC240 #40C252 #40C293
triadic
#40C252 #5240C2 #C25240
tetradic
#40C252 #406FC2 #C240B0 #C29340
square
#40C252 #406FC2 #C240B0 #C29340
split-complementary
#40C252 #9340C2 #C2406F
monochromatic
#21672B #30953E #40C252 #6ED17C #9DE0A6
Accessibility & contrast
On white
2.32
#40C252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.06
#40C252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #40C252
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##40C252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##40C252 | 1.00 | 2.32 | 9.06 | 9.06 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5B147
Deuteranopia (green-blind)
#B5A65B
Tritanopia (blue-blind)
#16BDA9
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #40c252; /* rgb */ color: rgb(64, 194, 82); /* oklch */ color: oklch(71.9% 0.190 145.5);
Tailwind
colors: {
custom: {
50: '#85d586',
500: '#40c252',
950: '#000000',
},
}SCSS
$custom: #40c252; $custom-light: #85d586; $custom-dark: #000000;
JSON
{
"hex": "#40c252",
"rgb": {
"r": 64,
"g": 194,
"b": 82
},
"hsl": {
"h": 128.308,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.71916,
"c": 0.1902,
"h": 145.5
},
"luminance": 0.40283
}Semantic roles & 50–950 ramp
primary
#40C252
secondary
#CC92C4
accent
#4DC7DB
background
#F8FDF8
surface
#F0FAEF
border
#CBD3CA
text
#0C140B
muted
#7D837C