#CD7AF9#CD7AF9
#CD7AF9 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.193 H 312.7°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AF9 |
|---|---|
| RGB | rgb(205, 122, 249) |
| HSL | hsl(279, 91%, 73%) |
| HSV | hsv(279, 51%, 98%) |
| CMYK | cmyk(17.7%, 51%, 0%, 2.4%) |
| CIE-LAB | lab(64.75, 53.47, -50.88) |
| CIE-LCH | lch(64.75, 73.81, 316.42°) |
| OKLab | oklab(71.85% 0.131 -0.1421) |
| OKLCH | oklch(71.85% 0.193 312.7) |
| XYZ | xyz(49.2323, 33.7389, 93.5229) |
| Luminance | 0.3374 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.62
Easter Purple
#C071FE
ΔE00 3.53
Liliac
#C48EFD
ΔE00 5.05
Light Urple
#B36FF6
ΔE00 5.51
Bright Lavender
#C760FF
ΔE00 5.65
Bright Lilac
#C95EFB
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AF9 #A6F97A
analogous
#8E7AF9 #CD7AF9 #F97AE5
triadic
#CD7AF9 #F9CD7A #7AF9CD
tetradic
#CD7AF9 #F98E7A #A6F97A #7AE5F9
square
#CD7AF9 #F98E7A #A6F97A #7AE5F9
split-complementary
#CD7AF9 #E5F97A #7AF98E
monochromatic
#9F0BEE #B73FF6 #CD7AF9 #E3B5FC #F4E2FE
Accessibility & contrast
On white
2.71
#CD7AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#CD7AF9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AF9
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AF9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AF9 | 1.00 | 2.71 | 7.75 | 7.75 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B99FD
Deuteranopia (green-blind)
#749FF6
Tritanopia (blue-blind)
#C98FAE
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #cd7af9; /* rgb */ color: rgb(205, 122, 249); /* oklch */ color: oklch(71.8% 0.193 312.7);
Tailwind
colors: {
custom: {
50: '#dfa3fc',
500: '#cd7af9',
950: '#000000',
},
}SCSS
$custom: #cd7af9; $custom-light: #dfa3fc; $custom-dark: #000000;
JSON
{
"hex": "#cd7af9",
"rgb": {
"r": 205,
"g": 122,
"b": 249
},
"hsl": {
"h": 279.213,
"s": 91.367,
"l": 72.745
},
"oklch": {
"l": 0.71848,
"c": 0.19321,
"h": 312.7
},
"luminance": 0.33738
}Semantic roles & 50–950 ramp
primary
#CD7AF9
secondary
#E0F6D5
accent
#E60050
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85