#D478F2#D478F2
#D478F2 is a light, vivid purple. Relative luminance 0.338; OKLCH L 72.0% C 0.192 H 317.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #D478F2 |
|---|---|
| RGB | rgb(212, 120, 242) |
| HSL | hsl(285, 82%, 71%) |
| HSV | hsv(285, 50%, 95%) |
| CMYK | cmyk(12.4%, 50.4%, 0%, 5.1%) |
| CIE-LAB | lab(64.84, 54.90, -46.84) |
| CIE-LCH | lch(64.84, 72.17, 319.53°) |
| OKLab | oklab(71.97% 0.1411 -0.1301) |
| OKLCH | oklch(71.97% 0.192 317.3) |
| XYZ | xyz(49.8926, 33.8425, 87.8913) |
| Luminance | 0.3384 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.23
Easter Purple
#C071FE
ΔE00 5.08
Orchid
#DA70D6
ΔE00 5.39
Violet (CSS)
#EE82EE
ΔE00 5.83
Purply Pink
#F075E6
ΔE00 6.03
Bright Lilac
#C95EFB
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D478F2 #96F278
analogous
#9778F2 #D478F2 #F278D3
triadic
#D478F2 #F2D478 #78F2D4
tetradic
#D478F2 #F29778 #96F278 #78D3F2
square
#D478F2 #F29778 #96F278 #78D3F2
split-complementary
#D478F2 #D3F278 #78F297
monochromatic
#AA15DB #C240ED #D478F2 #E6B0F7 #F6E3FC
Accessibility & contrast
On white
2.70
#D478F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.77
#D478F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D478F2
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D478F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D478F2 | 1.00 | 2.70 | 7.77 | 7.77 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6097F6
Deuteranopia (green-blind)
#7CA0EF
Tritanopia (blue-blind)
#D38AAA
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #d478f2; /* rgb */ color: rgb(212, 120, 242); /* oklch */ color: oklch(72.0% 0.192 317.3);
Tailwind
colors: {
custom: {
50: '#e3a2f7',
500: '#d478f2',
950: '#000000',
},
}SCSS
$custom: #d478f2; $custom-light: #e3a2f7; $custom-dark: #000000;
JSON
{
"hex": "#d478f2",
"rgb": {
"r": 212,
"g": 120,
"b": 242
},
"hsl": {
"h": 285.246,
"s": 82.432,
"l": 70.98
},
"oklch": {
"l": 0.71975,
"c": 0.19196,
"h": 317.3
},
"luminance": 0.33841
}Semantic roles & 50–950 ramp
primary
#D478F2
secondary
#DBF3D3
accent
#DF073C
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85