#D38CF8#D38CF8
#D38CF8 is a light, vivid violet. Relative luminance 0.394; OKLCH L 75.2% C 0.166 H 313.2°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).
Color values
| HEX | #D38CF8 |
|---|---|
| RGB | rgb(211, 140, 248) |
| HSL | hsl(279, 89%, 76%) |
| HSV | hsv(279, 44%, 97%) |
| CMYK | cmyk(14.9%, 43.5%, 0%, 2.7%) |
| CIE-LAB | lab(69.03, 45.51, -43.56) |
| CIE-LCH | lch(69.03, 63.00, 316.26°) |
| OKLab | oklab(75.16% 0.1136 -0.1208) |
| OKLCH | oklch(75.16% 0.166 313.2) |
| XYZ | xyz(53.1825, 39.3835, 93.5889) |
| Luminance | 0.3938 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.44
Baby Purple
#CA9BF7
ΔE00 4.33
Pastel Purple
#CAA0FF
ΔE00 5.65
Lilac (survey)
#CEA2FD
ΔE00 5.70
Lavender (survey)
#C79FEF
ΔE00 6.02
Violet (CSS)
#EE82EE
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D38CF8 #B1F88C
analogous
#9D8CF8 #D38CF8 #F88CE7
triadic
#D38CF8 #F8D38C #8CF8D3
tetradic
#D38CF8 #F89D8C #B1F88C #8CE7F8
square
#D38CF8 #F89D8C #B1F88C #8CE7F8
split-complementary
#D38CF8 #E7F88C #8CF89D
monochromatic
#A719F1 #BD52F4 #D38CF8 #E9C6FC #F4E2FD
Accessibility & contrast
On white
2.37
#D38CF8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.88
#D38CF8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D38CF8
8.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D38CF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D38CF8 | 1.00 | 2.37 | 8.88 | 8.88 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#77A5FC
Deuteranopia (green-blind)
#89AAF5
Tritanopia (blue-blind)
#D09CB6
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #d38cf8; /* rgb */ color: rgb(211, 140, 248); /* oklch */ color: oklch(75.2% 0.166 313.2);
Tailwind
colors: {
custom: {
50: '#e2affb',
500: '#d38cf8',
950: '#000000',
},
}SCSS
$custom: #d38cf8; $custom-light: #e2affb; $custom-dark: #000000;
JSON
{
"hex": "#d38cf8",
"rgb": {
"r": 211,
"g": 140,
"b": 248
},
"hsl": {
"h": 279.444,
"s": 88.525,
"l": 76.078
},
"oklch": {
"l": 0.75159,
"c": 0.16578,
"h": 313.2
},
"luminance": 0.39382
}Semantic roles & 50–950 ramp
primary
#D38CF8
secondary
#E1F5D6
accent
#E5004F
background
#FEFAFF
surface
#FCF5FF
border
#D5CFD7
text
#161017
muted
#847F85