#CD7AF2#CD7AF2
#CD7AF2 is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.5% C 0.186 H 314.5°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).
Color values
| HEX | #CD7AF2 |
|---|---|
| RGB | rgb(205, 122, 242) |
| HSL | hsl(282, 82%, 71%) |
| HSV | hsv(282, 50%, 95%) |
| CMYK | cmyk(15.3%, 49.6%, 0%, 5.1%) |
| CIE-LAB | lab(64.41, 52.02, -47.57) |
| CIE-LCH | lch(64.41, 70.49, 317.56°) |
| OKLab | oklab(71.48% 0.1302 -0.1324) |
| OKLCH | oklch(71.48% 0.186 314.5) |
| XYZ | xyz(48.1608, 33.3103, 87.8797) |
| Luminance | 0.3331 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.08
Easter Purple
#C071FE
ΔE00 4.21
Liliac
#C48EFD
ΔE00 5.41
Light Urple
#B36FF6
ΔE00 5.92
Bright Lavender
#C760FF
ΔE00 6.05
Bright Lilac
#C95EFB
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD7AF2 #9FF27A
analogous
#917AF2 #CD7AF2 #F27ADB
triadic
#CD7AF2 #F2CD7A #7AF2CD
tetradic
#CD7AF2 #F2917A #9FF27A #7ADBF2
square
#CD7AF2 #F2917A #9FF27A #7ADBF2
split-complementary
#CD7AF2 #DBF27A #7AF291
monochromatic
#9F16DC #B842ED #CD7AF2 #E2B2F7 #F5E3FC
Accessibility & contrast
On white
2.74
#CD7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.66
#CD7AF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CD7AF2
7.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD7AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD7AF2 | 1.00 | 2.74 | 7.66 | 7.66 |
| #FFFFFF | 2.74 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6097F6
Deuteranopia (green-blind)
#789EEF
Tritanopia (blue-blind)
#CA8DAB
Achromatopsia (no color)
#9C9C9C
Design tokens & code
CSS
--color: #cd7af2; /* rgb */ color: rgb(205, 122, 242); /* oklch */ color: oklch(71.5% 0.186 314.5);
Tailwind
colors: {
custom: {
50: '#dea3f7',
500: '#cd7af2',
950: '#000000',
},
}SCSS
$custom: #cd7af2; $custom-light: #dea3f7; $custom-dark: #000000;
JSON
{
"hex": "#cd7af2",
"rgb": {
"r": 205,
"g": 122,
"b": 242
},
"hsl": {
"h": 281.5,
"s": 82.192,
"l": 71.373
},
"oklch": {
"l": 0.71482,
"c": 0.18575,
"h": 314.5
},
"luminance": 0.33309
}Semantic roles & 50–950 ramp
primary
#CD7AF2
secondary
#DEF3D4
accent
#DF0749
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85