#C170F5#C170F5
#C170F5 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.9% C 0.200 H 310.3°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).
Color values
| HEX | #C170F5 |
|---|---|
| RGB | rgb(193, 112, 245) |
| HSL | hsl(277, 87%, 70%) |
| HSV | hsv(277, 54%, 96%) |
| CMYK | cmyk(21.2%, 54.3%, 0%, 3.9%) |
| CIE-LAB | lab(61.24, 54.65, -54.34) |
| CIE-LCH | lch(61.24, 77.07, 315.16°) |
| OKLab | oklab(68.89% 0.1293 -0.1524) |
| OKLCH | oklch(68.89% 0.2 310.3) |
| XYZ | xyz(44.2648, 29.5192, 89.7344) |
| Luminance | 0.2952 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Easter Purple
#C071FE
ΔE00 1.44
Light Purple
#BF77F6
ΔE00 1.59
Light Urple
#B36FF6
ΔE00 2.69
Bright Lavender
#C760FF
ΔE00 3.27
Bright Lilac
#C95EFB
ΔE00 3.51
Heliotrope
#D94FF5
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170F5 #A4F570
analogous
#7E70F5 #C170F5 #F570E7
triadic
#C170F5 #F5C170 #70F5C1
tetradic
#C170F5 #F57E70 #A4F570 #70E7F5
square
#C170F5 #F57E70 #A4F570 #70E7F5
split-complementary
#C170F5 #E7F570 #70F57E
monochromatic
#8C0FDB #A837F1 #C170F5 #DAA9F9 #F3E2FD
Accessibility & contrast
On white
3.04
#C170F5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.90
#C170F5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170F5
6.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170F5 | 1.00 | 3.04 | 6.90 | 6.90 |
| #FFFFFF | 3.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4890F9
Deuteranopia (green-blind)
#6495F2
Tritanopia (blue-blind)
#BA87A8
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #c170f5; /* rgb */ color: rgb(193, 112, 245); /* oklch */ color: oklch(68.9% 0.200 310.3);
Tailwind
colors: {
custom: {
50: '#d79cf9',
500: '#c170f5',
950: '#000000',
},
}SCSS
$custom: #c170f5; $custom-light: #d79cf9; $custom-dark: #000000;
JSON
{
"hex": "#c170f5",
"rgb": {
"r": 193,
"g": 112,
"b": 245
},
"hsl": {
"h": 276.541,
"s": 86.928,
"l": 70
},
"oklch": {
"l": 0.68887,
"c": 0.19985,
"h": 310.3
},
"luminance": 0.29518
}Semantic roles & 50–950 ramp
primary
#C170F5
secondary
#DCF3CE
accent
#E3025A
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85