#C170D8#C170D8
#C170D8 is a light, vivid purple. Relative luminance 0.279; OKLCH L 67.3% C 0.169 H 318.4°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #C170D8 |
|---|---|
| RGB | rgb(193, 112, 216) |
| HSL | hsl(287, 57%, 64%) |
| HSV | hsv(287, 48%, 85%) |
| CMYK | cmyk(10.6%, 48.1%, 0%, 15.3%) |
| CIE-LAB | lab(59.78, 48.60, -40.47) |
| CIE-LCH | lch(59.78, 63.24, 320.21°) |
| OKLab | oklab(67.34% 0.1265 -0.1121) |
| OKLCH | oklch(67.34% 0.169 318.4) |
| XYZ | xyz(40.1795, 27.8851, 68.2183) |
| Luminance | 0.2788 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Orchid
#DA70D6
ΔE00 5.00
Orchid (survey)
#C875C4
ΔE00 5.17
Light Purple
#BF77F6
ΔE00 5.34
Easter Purple
#C071FE
ΔE00 6.25
Bright Lilac
#C95EFB
ΔE00 6.31
Mediumorchid
#BA55D3
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170D8 #87D870
analogous
#8D70D8 #C170D8 #D870BB
triadic
#C170D8 #D8C170 #70D8C1
tetradic
#C170D8 #D88D70 #87D870 #70BBD8
square
#C170D8 #D88D70 #87D870 #70BBD8
split-complementary
#C170D8 #BBD870 #70D88D
monochromatic
#882CA2 #AC40CB #C170D8 #D6A0E5 #EBD0F2
Accessibility & contrast
On white
3.19
#C170D8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.58
#C170D8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170D8
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170D8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170D8 | 1.00 | 3.19 | 6.58 | 6.58 |
| #FFFFFF | 3.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E8BDC
Deuteranopia (green-blind)
#7593D5
Tritanopia (blue-blind)
#C17E9A
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #c170d8; /* rgb */ color: rgb(193, 112, 216); /* oklch */ color: oklch(67.3% 0.169 318.4);
Tailwind
colors: {
custom: {
50: '#d69be4',
500: '#c170d8',
950: '#000000',
},
}SCSS
$custom: #c170d8; $custom-light: #d69be4; $custom-dark: #000000;
JSON
{
"hex": "#c170d8",
"rgb": {
"r": 193,
"g": 112,
"b": 216
},
"hsl": {
"h": 286.731,
"s": 57.143,
"l": 64.314
},
"oklch": {
"l": 0.67342,
"c": 0.16901,
"h": 318.4
},
"luminance": 0.27884
}Semantic roles & 50–950 ramp
primary
#C170D8
secondary
#C8E4C0
accent
#C52145
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E15
muted
#837E84