#CD7AFC#CD7AFC
#CD7AFC is a light, vivid violet. Relative luminance 0.339; OKLCH L 72.0% C 0.196 H 311.9°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AFC |
|---|---|
| RGB | rgb(205, 122, 252) |
| HSL | hsl(278, 96%, 73%) |
| HSV | hsv(278, 52%, 99%) |
| CMYK | cmyk(18.7%, 51.6%, 0%, 1.2%) |
| CIE-LAB | lab(64.91, 54.10, -52.29) |
| CIE-LCH | lch(64.91, 75.24, 315.97°) |
| OKLab | oklab(72.01% 0.1312 -0.1462) |
| OKLCH | oklch(72.01% 0.196 311.9) |
| XYZ | xyz(49.7040, 33.9276, 96.0069) |
| Luminance | 0.3393 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.55
Easter Purple
#C071FE
ΔE00 3.32
Liliac
#C48EFD
ΔE00 4.97
Light Urple
#B36FF6
ΔE00 5.40
Bright Lavender
#C760FF
ΔE00 5.55
Bright Lilac
#C95EFB
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AFC #A9FC7A
analogous
#8C7AFC #CD7AFC #FC7AEA
triadic
#CD7AFC #FCCD7A #7AFCCD
tetradic
#CD7AFC #FC8C7A #A9FC7A #7AEAFC
square
#CD7AFC #FC8C7A #A9FC7A #7AEAFC
split-complementary
#CD7AFC #EAFC7A #7AFC8C
monochromatic
#9F06F6 #B73EFB #CD7AFC #E3B6FD #F4E1FE
Accessibility & contrast
On white
2.70
#CD7AFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.79
#CD7AFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AFC
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AFC | 1.00 | 2.70 | 7.79 | 7.79 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#C890B0
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cd7afc; /* rgb */ color: rgb(205, 122, 252); /* oklch */ color: oklch(72.0% 0.196 311.9);
Tailwind
colors: {
custom: {
50: '#dfa3fe',
500: '#cd7afc',
950: '#000000',
},
}SCSS
$custom: #cd7afc; $custom-light: #dfa3fe; $custom-dark: #000000;
JSON
{
"hex": "#cd7afc",
"rgb": {
"r": 205,
"g": 122,
"b": 252
},
"hsl": {
"h": 278.308,
"s": 95.588,
"l": 73.333
},
"oklch": {
"l": 0.72008,
"c": 0.19642,
"h": 311.9
},
"luminance": 0.33926
}Semantic roles & 50–950 ramp
primary
#CD7AFC
secondary
#E1F7D4
accent
#E60053
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86