#C170E2#C170E2
#C170E2 is a light, vivid purple. Relative luminance 0.284; OKLCH L 67.9% C 0.180 H 315.4°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).
Color values
| HEX | #C170E2 |
|---|---|
| RGB | rgb(193, 112, 226) |
| HSL | hsl(283, 66%, 66%) |
| HSV | hsv(283, 50%, 89%) |
| CMYK | cmyk(14.6%, 50.4%, 0%, 11.4%) |
| CIE-LAB | lab(60.26, 50.63, -45.32) |
| CIE-LCH | lch(60.26, 67.95, 318.17°) |
| OKLab | oklab(67.85% 0.1277 -0.1262) |
| OKLCH | oklch(67.85% 0.18 315.4) |
| XYZ | xyz(41.5118, 28.4180, 75.2352) |
| Luminance | 0.2842 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.70
Easter Purple
#C071FE
ΔE00 4.50
Light Urple
#B36FF6
ΔE00 4.85
Bright Lilac
#C95EFB
ΔE00 4.93
Bright Lavender
#C760FF
ΔE00 5.18
Orchid
#DA70D6
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170E2 #91E270
analogous
#8870E2 #C170E2 #E270CA
triadic
#C170E2 #E2C170 #70E2C1
tetradic
#C170E2 #E28870 #91E270 #70CAE2
square
#C170E2 #E28870 #91E270 #70CAE2
split-complementary
#C170E2 #CAE270 #70E288
monochromatic
#8A24B3 #AB3DD8 #C170E2 #D7A3EC #EDD6F7
Accessibility & contrast
On white
3.14
#C170E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.68
#C170E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170E2
6.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170E2 | 1.00 | 3.14 | 6.68 | 6.68 |
| #FFFFFF | 3.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#578CE6
Deuteranopia (green-blind)
#7094DF
Tritanopia (blue-blind)
#BF819F
Achromatopsia (no color)
#919191
Design tokens & code
CSS
--color: #c170e2; /* rgb */ color: rgb(193, 112, 226); /* oklch */ color: oklch(67.9% 0.180 315.4);
Tailwind
colors: {
custom: {
50: '#d69ceb',
500: '#c170e2',
950: '#000000',
},
}SCSS
$custom: #c170e2; $custom-light: #d69ceb; $custom-dark: #000000;
JSON
{
"hex": "#c170e2",
"rgb": {
"r": 193,
"g": 112,
"b": 226
},
"hsl": {
"h": 282.632,
"s": 66.279,
"l": 66.275
},
"oklch": {
"l": 0.67854,
"c": 0.17952,
"h": 315.4
},
"luminance": 0.28417
}Semantic roles & 50–950 ramp
primary
#C170E2
secondary
#CFEAC4
accent
#CE174C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84