#CD7AFF#CD7AFF
#CD7AFF is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.2% C 0.200 H 311.2°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AFF |
|---|---|
| RGB | rgb(205, 122, 255) |
| HSL | hsl(277, 100%, 74%) |
| HSV | hsv(277, 52%, 100%) |
| CMYK | cmyk(19.6%, 52.2%, 0%, 0%) |
| CIE-LAB | lab(65.06, 54.74, -53.70) |
| CIE-LCH | lch(65.06, 76.68, 315.55°) |
| OKLab | oklab(72.17% 0.1315 -0.1502) |
| OKLCH | oklch(72.17% 0.2 311.2) |
| XYZ | xyz(50.1831, 34.1192, 98.5304) |
| Luminance | 0.3412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.58
Easter Purple
#C071FE
ΔE00 3.18
Liliac
#C48EFD
ΔE00 4.94
Light Urple
#B36FF6
ΔE00 5.34
Bright Lavender
#C760FF
ΔE00 5.49
Bright Lilac
#C95EFB
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AFF #ACFF7A
analogous
#8B7AFF #CD7AFF #FF7AEE
triadic
#CD7AFF #FFCD7A #7AFFCD
tetradic
#CD7AFF #FF8B7A #ACFF7A #7AEEFF
square
#CD7AFF #FF8B7A #ACFF7A #7AEEFF
split-complementary
#CD7AFF #EEFF7A #7AFF8B
monochromatic
#9F00FF #B63DFF #CD7AFF #E4B7FF #F3E0FF
Accessibility & contrast
On white
2.68
#CD7AFF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.82
#CD7AFF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AFF
7.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AFF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AFF | 1.00 | 2.68 | 7.82 | 7.82 |
| #FFFFFF | 2.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#569AFF
Deuteranopia (green-blind)
#71A0FC
Tritanopia (blue-blind)
#C790B1
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #cd7aff; /* rgb */ color: rgb(205, 122, 255); /* oklch */ color: oklch(72.2% 0.200 311.2);
Tailwind
colors: {
custom: {
50: '#dfa3ff',
500: '#cd7aff',
950: '#000000',
},
}SCSS
$custom: #cd7aff; $custom-light: #dfa3ff; $custom-dark: #000000;
JSON
{
"hex": "#cd7aff",
"rgb": {
"r": 205,
"g": 122,
"b": 255
},
"hsl": {
"h": 277.444,
"s": 100,
"l": 73.922
},
"oklch": {
"l": 0.7217,
"c": 0.19964,
"h": 311.2
},
"luminance": 0.34118
}Semantic roles & 50–950 ramp
primary
#CD7AFF
secondary
#E1F7D4
accent
#E60056
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F18
muted
#847F86