#D040E2#D040E2
#D040E2 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.2% C 0.251 H 323.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).
Color values
| HEX | #D040E2 |
|---|---|
| RGB | rgb(208, 64, 226) |
| HSL | hsl(293, 74%, 57%) |
| HSV | hsv(293, 72%, 89%) |
| CMYK | cmyk(8%, 71.7%, 0%, 11.4%) |
| CIE-LAB | lab(54.63, 75.11, -54.15) |
| CIE-LCH | lch(54.63, 92.60, 324.21°) |
| OKLab | oklab(64.17% 0.2008 -0.1512) |
| OKLCH | oklch(64.17% 0.251 323) |
| XYZ | xyz(41.5720, 22.5701, 74.1035) |
| Luminance | 0.2257 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple Pink
#D725DE
ΔE00 2.55
Pinkish Purple
#D648D7
ΔE00 2.77
Mediumorchid
#BA55D3
ΔE00 4.04
Heliotrope
#D94FF5
ΔE00 4.16
Pink Purple
#EF1DE7
ΔE00 4.55
Fuchsia (survey)
#ED0DD9
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D040E2 #52E240
analogous
#7F40E2 #D040E2 #E240A3
triadic
#D040E2 #E2D040 #40E2D0
tetradic
#D040E2 #E27F40 #52E240 #40A3E2
square
#D040E2 #E27F40 #52E240 #40A3E2
split-complementary
#D040E2 #A3E240 #40E27F
monochromatic
#841692 #B41EC7 #D040E2 #DD75EA #EAAAF2
Accessibility & contrast
On white
3.81
#D040E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.51
#D040E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #D040E2
5.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D040E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D040E2 | 1.00 | 3.81 | 5.51 | 5.51 |
| #FFFFFF | 3.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#5A88DE
Tritanopia (blue-blind)
#D35D8E
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #d040e2; /* rgb */ color: rgb(208, 64, 226); /* oklch */ color: oklch(64.2% 0.251 323.0);
Tailwind
colors: {
custom: {
50: '#e282ec',
500: '#d040e2',
950: '#000000',
},
}SCSS
$custom: #d040e2; $custom-light: #e282ec; $custom-dark: #000000;
JSON
{
"hex": "#d040e2",
"rgb": {
"r": 208,
"g": 64,
"b": 226
},
"hsl": {
"h": 293.333,
"s": 73.636,
"l": 56.863
},
"oklch": {
"l": 0.64171,
"c": 0.25136,
"h": 323
},
"luminance": 0.22568
}Semantic roles & 50–950 ramp
primary
#D040E2
secondary
#A5E09E
accent
#F0384C
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84