#D296F2#D296F2
#D296F2 is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.4% C 0.142 H 313.2°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #D296F2 |
|---|---|
| RGB | rgb(210, 150, 242) |
| HSL | hsl(279, 78%, 77%) |
| HSV | hsv(279, 38%, 95%) |
| CMYK | cmyk(13.2%, 38%, 0%, 5.1%) |
| CIE-LAB | lab(70.82, 38.63, -37.49) |
| CIE-LCH | lch(70.82, 53.83, 315.86°) |
| OKLab | oklab(76.4% 0.0972 -0.1034) |
| OKLCH | oklch(76.4% 0.142 313.2) |
| XYZ | xyz(53.5091, 41.9262, 89.2609) |
| Luminance | 0.4193 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 2.61
Lavender (survey)
#C79FEF
ΔE00 3.63
Lilac (survey)
#CEA2FD
ΔE00 3.76
Pastel Purple
#CAA0FF
ΔE00 4.20
Liliac
#C48EFD
ΔE00 4.62
Pale Purple
#B790D4
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D296F2 #B6F296
analogous
#A496F2 #D296F2 #F296E4
triadic
#D296F2 #F2D296 #96F2D2
tetradic
#D296F2 #F2A496 #B6F296 #96E4F2
square
#D296F2 #F2A496 #B6F296 #96E4F2
split-complementary
#D296F2 #E4F296 #96F2A4
monochromatic
#A329E5 #BB60EB #D296F2 #E9CCF9 #F3E4FC
Accessibility & contrast
On white
2.24
#D296F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.39
#D296F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D296F2
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D296F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D296F2 | 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)
#86AAF5
Deuteranopia (green-blind)
#94AFEF
Tritanopia (blue-blind)
#CFA3B9
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #d296f2; /* rgb */ color: rgb(210, 150, 242); /* oklch */ color: oklch(76.4% 0.142 313.2);
Tailwind
colors: {
custom: {
50: '#e1b6f6',
500: '#d296f2',
950: '#000000',
},
}SCSS
$custom: #d296f2; $custom-light: #e1b6f6; $custom-dark: #000000;
JSON
{
"hex": "#d296f2",
"rgb": {
"r": 210,
"g": 150,
"b": 242
},
"hsl": {
"h": 279.13,
"s": 77.966,
"l": 76.863
},
"oklch": {
"l": 0.76398,
"c": 0.14194,
"h": 313.2
},
"luminance": 0.41925
}Semantic roles & 50–950 ramp
primary
#D296F2
secondary
#E1F3D8
accent
#DA0B53
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085