#CD7AF8#CD7AF8
#CD7AF8 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.192 H 312.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AF8 |
|---|---|
| RGB | rgb(205, 122, 248) |
| HSL | hsl(280, 90%, 73%) |
| HSV | hsv(280, 51%, 97%) |
| CMYK | cmyk(17.3%, 50.8%, 0%, 2.7%) |
| CIE-LAB | lab(64.71, 53.26, -50.41) |
| CIE-LCH | lch(64.71, 73.33, 316.57°) |
| OKLab | oklab(71.8% 0.1309 -0.1407) |
| OKLCH | oklch(71.8% 0.192 312.9) |
| XYZ | xyz(49.0768, 33.6767, 92.7037) |
| Luminance | 0.3368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.66
Easter Purple
#C071FE
ΔE00 3.61
Liliac
#C48EFD
ΔE00 5.09
Light Urple
#B36FF6
ΔE00 5.55
Bright Lavender
#C760FF
ΔE00 5.69
Bright Lilac
#C95EFB
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AF8 #A5F87A
analogous
#8E7AF8 #CD7AF8 #F87AE4
triadic
#CD7AF8 #F8CD7A #7AF8CD
tetradic
#CD7AF8 #F88E7A #A5F87A #7AE4F8
square
#CD7AF8 #F88E7A #A5F87A #7AE4F8
split-complementary
#CD7AF8 #E4F87A #7AF88E
monochromatic
#9F0CEB #B740F5 #CD7AF8 #E3B4FB #F4E2FD
Accessibility & contrast
On white
2.71
#CD7AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.74
#CD7AF8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AF8
7.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AF8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AF8 | 1.00 | 2.71 | 7.74 | 7.74 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B98FC
Deuteranopia (green-blind)
#759FF5
Tritanopia (blue-blind)
#C98EAE
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cd7af8; /* rgb */ color: rgb(205, 122, 248); /* oklch */ color: oklch(71.8% 0.192 312.9);
Tailwind
colors: {
custom: {
50: '#dfa3fb',
500: '#cd7af8',
950: '#000000',
},
}SCSS
$custom: #cd7af8; $custom-light: #dfa3fb; $custom-dark: #000000;
JSON
{
"hex": "#cd7af8",
"rgb": {
"r": 205,
"g": 122,
"b": 248
},
"hsl": {
"h": 279.524,
"s": 90,
"l": 72.549
},
"oklch": {
"l": 0.71795,
"c": 0.19214,
"h": 312.9
},
"luminance": 0.33676
}Semantic roles & 50–950 ramp
primary
#CD7AF8
secondary
#E0F6D5
accent
#E6004E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85