#C170E8#C170E8
#C170E8 is a light, vivid purple. Relative luminance 0.288; OKLCH L 68.2% C 0.186 H 313.7°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).
Color values
| HEX | #C170E8 |
|---|---|
| RGB | rgb(193, 112, 232) |
| HSL | hsl(281, 72%, 67%) |
| HSV | hsv(281, 52%, 91%) |
| CMYK | cmyk(16.8%, 51.7%, 0%, 9%) |
| CIE-LAB | lab(60.56, 51.88, -48.20) |
| CIE-LCH | lch(60.56, 70.81, 317.11°) |
| OKLab | oklab(68.17% 0.1283 -0.1345) |
| OKLCH | oklch(68.17% 0.186 313.7) |
| XYZ | xyz(42.3496, 28.7531, 79.6473) |
| Luminance | 0.2875 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.82
Easter Purple
#C071FE
ΔE00 3.49
Light Urple
#B36FF6
ΔE00 4.01
Bright Lilac
#C95EFB
ΔE00 4.28
Bright Lavender
#C760FF
ΔE00 4.41
Heliotrope
#D94FF5
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170E8 #97E870
analogous
#8570E8 #C170E8 #E870D3
triadic
#C170E8 #E8C170 #70E8C1
tetradic
#C170E8 #E88570 #97E870 #70D3E8
square
#C170E8 #E88570 #97E870 #70D3E8
split-complementary
#C170E8 #D3E870 #70E885
monochromatic
#8B1FBF #AA3BE0 #C170E8 #D8A5F0 #EFD9F9
Accessibility & contrast
On white
3.11
#C170E8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.75
#C170E8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170E8
6.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170E8 | 1.00 | 3.11 | 6.75 | 6.75 |
| #FFFFFF | 3.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#538EEC
Deuteranopia (green-blind)
#6C94E5
Tritanopia (blue-blind)
#BE83A2
Achromatopsia (no color)
#929292
Design tokens & code
CSS
--color: #c170e8; /* rgb */ color: rgb(193, 112, 232); /* oklch */ color: oklch(68.2% 0.186 313.7);
Tailwind
colors: {
custom: {
50: '#d69cf0',
500: '#c170e8',
950: '#000000',
},
}SCSS
$custom: #c170e8; $custom-light: #d69cf0; $custom-dark: #000000;
JSON
{
"hex": "#c170e8",
"rgb": {
"r": 193,
"g": 112,
"b": 232
},
"hsl": {
"h": 280.5,
"s": 72.289,
"l": 67.451
},
"oklch": {
"l": 0.68172,
"c": 0.1859,
"h": 313.7
},
"luminance": 0.28752
}Semantic roles & 50–950 ramp
primary
#C170E8
secondary
#D3EDC7
accent
#D41151
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84