#CD7AFE#CD7AFE
#CD7AFE is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.1% C 0.199 H 311.4°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AFE |
|---|---|
| RGB | rgb(205, 122, 254) |
| HSL | hsl(278, 99%, 74%) |
| HSV | hsv(278, 52%, 100%) |
| CMYK | cmyk(19.3%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(65.01, 54.52, -53.23) |
| CIE-LCH | lch(65.01, 76.20, 315.69°) |
| OKLab | oklab(72.12% 0.1314 -0.1489) |
| OKLCH | oklch(72.12% 0.199 311.4) |
| XYZ | xyz(50.0225, 34.0550, 97.6849) |
| Luminance | 0.3405 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.56
Easter Purple
#C071FE
ΔE00 3.22
Liliac
#C48EFD
ΔE00 4.94
Light Urple
#B36FF6
ΔE00 5.35
Bright Lavender
#C760FF
ΔE00 5.51
Bright Lilac
#C95EFB
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AFE #ABFE7A
analogous
#8B7AFE #CD7AFE #FE7AED
triadic
#CD7AFE #FECD7A #7AFECD
tetradic
#CD7AFE #FE8B7A #ABFE7A #7AEDFE
square
#CD7AFE #FE8B7A #ABFE7A #7AEDFE
split-complementary
#CD7AFE #EDFE7A #7AFE8B
monochromatic
#9F02FC #B63DFE #CD7AFE #E4B7FE #F4E1FF
Accessibility & contrast
On white
2.69
#CD7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#CD7AFE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AFE
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AFE | 1.00 | 2.69 | 7.81 | 7.81 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#579AFF
Deuteranopia (green-blind)
#719FFB
Tritanopia (blue-blind)
#C890B1
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #cd7afe; /* rgb */ color: rgb(205, 122, 254); /* oklch */ color: oklch(72.1% 0.199 311.4);
Tailwind
colors: {
custom: {
50: '#dfa3ff',
500: '#cd7afe',
950: '#000000',
},
}SCSS
$custom: #cd7afe; $custom-light: #dfa3ff; $custom-dark: #000000;
JSON
{
"hex": "#cd7afe",
"rgb": {
"r": 205,
"g": 122,
"b": 254
},
"hsl": {
"h": 277.727,
"s": 98.507,
"l": 73.725
},
"oklch": {
"l": 0.72116,
"c": 0.19857,
"h": 311.4
},
"luminance": 0.34054
}Semantic roles & 50–950 ramp
primary
#CD7AFE
secondary
#E1F7D4
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86