#CD51D6#CD51D6
#CD51D6 is a light, highly saturated purple. Relative luminance 0.237; OKLCH L 64.7% C 0.220 H 325.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #CD51D6 |
|---|---|
| RGB | rgb(205, 81, 214) |
| HSL | hsl(296, 62%, 58%) |
| HSV | hsv(296, 62%, 84%) |
| CMYK | cmyk(4.2%, 62.1%, 0%, 16.1%) |
| CIE-LAB | lab(55.81, 65.98, -45.51) |
| CIE-LCH | lch(55.81, 80.15, 325.40°) |
| OKLab | oklab(64.72% 0.18 -0.1262) |
| OKLCH | oklch(64.72% 0.22 325) |
| XYZ | xyz(40.2559, 23.7214, 66.0636) |
| Luminance | 0.2372 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Pinkish Purple
#D648D7
ΔE00 1.59
Mediumorchid
#BA55D3
ΔE00 3.35
Pinky Purple
#C94CBE
ΔE00 4.08
Heliotrope
#D94FF5
ΔE00 4.54
Purpleish Pink
#DF4EC8
ΔE00 4.63
Purple Pink
#D725DE
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CD51D6 #5AD651
analogous
#8B51D6 #CD51D6 #D6519C
triadic
#CD51D6 #D6CD51 #51D6CD
tetradic
#CD51D6 #D68B51 #5AD651 #519CD6
square
#CD51D6 #D68B51 #5AD651 #519CD6
split-complementary
#CD51D6 #9CD651 #51D68B
monochromatic
#84218C #B32DBD #CD51D6 #DB83E2 #E9B4ED
Accessibility & contrast
On white
3.66
#CD51D6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.74
#CD51D6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #CD51D6
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CD51D6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CD51D6 | 1.00 | 3.66 | 5.74 | 5.74 |
| #FFFFFF | 3.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A7CDA
Deuteranopia (green-blind)
#698BD2
Tritanopia (blue-blind)
#D1648C
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #cd51d6; /* rgb */ color: rgb(205, 81, 214); /* oklch */ color: oklch(64.7% 0.220 325.0);
Tailwind
colors: {
custom: {
50: '#df8ae3',
500: '#cd51d6',
950: '#000000',
},
}SCSS
$custom: #cd51d6; $custom-light: #df8ae3; $custom-dark: #000000;
JSON
{
"hex": "#cd51d6",
"rgb": {
"r": 205,
"g": 81,
"b": 214
},
"hsl": {
"h": 295.94,
"s": 61.86,
"l": 57.843
},
"oklch": {
"l": 0.64722,
"c": 0.21979,
"h": 325
},
"luminance": 0.23719
}Semantic roles & 50–950 ramp
primary
#CD51D6
secondary
#AADCA7
accent
#E5434E
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83