#CF8EF2#CF8EF2
#CF8EF2 is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.8% C 0.154 H 313.0°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #CF8EF2 |
|---|---|
| RGB | rgb(207, 142, 242) |
| HSL | hsl(279, 79%, 75%) |
| HSV | hsv(279, 41%, 95%) |
| CMYK | cmyk(14.5%, 41.3%, 0%, 5.1%) |
| CIE-LAB | lab(68.77, 42.06, -40.71) |
| CIE-LCH | lch(68.77, 58.54, 315.93°) |
| OKLab | oklab(74.78% 0.1051 -0.1127) |
| OKLCH | oklch(74.78% 0.154 313) |
| XYZ | xyz(51.4295, 39.0232, 88.8102) |
| Luminance | 0.3902 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.49
Baby Purple
#CA9BF7
ΔE00 3.65
Lavender (survey)
#C79FEF
ΔE00 5.10
Lilac (survey)
#CEA2FD
ΔE00 5.18
Pastel Purple
#CAA0FF
ΔE00 5.20
Pale Purple
#B790D4
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CF8EF2 #B1F28E
analogous
#9D8EF2 #CF8EF2 #F28EE3
triadic
#CF8EF2 #F2CF8E #8EF2CF
tetradic
#CF8EF2 #F29D8E #B1F28E #8EE3F2
square
#CF8EF2 #F29D8E #B1F28E #8EE3F2
split-complementary
#CF8EF2 #E3F28E #8EF29D
monochromatic
#A020E5 #B857EC #CF8EF2 #E6C5F8 #F3E4FC
Accessibility & contrast
On white
2.39
#CF8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.80
#CF8EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CF8EF2
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CF8EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CF8EF2 | 1.00 | 2.39 | 8.80 | 8.80 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7BA4F6
Deuteranopia (green-blind)
#8BA9EF
Tritanopia (blue-blind)
#CC9CB5
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #cf8ef2; /* rgb */ color: rgb(207, 142, 242); /* oklch */ color: oklch(74.8% 0.154 313.0);
Tailwind
colors: {
custom: {
50: '#dfb0f6',
500: '#cf8ef2',
950: '#000000',
},
}SCSS
$custom: #cf8ef2; $custom-light: #dfb0f6; $custom-dark: #000000;
JSON
{
"hex": "#cf8ef2",
"rgb": {
"r": 207,
"g": 142,
"b": 242
},
"hsl": {
"h": 279,
"s": 79.365,
"l": 75.294
},
"oklch": {
"l": 0.74782,
"c": 0.15407,
"h": 313
},
"luminance": 0.39022
}Semantic roles & 50–950 ramp
primary
#CF8EF2
secondary
#E1F4D7
accent
#DC0A53
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85