#C170F4#C170F4
#C170F4 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.8% C 0.199 H 310.5°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).
Color values
| HEX | #C170F4 |
|---|---|
| RGB | rgb(193, 112, 244) |
| HSL | hsl(277, 86%, 70%) |
| HSV | hsv(277, 54%, 96%) |
| CMYK | cmyk(20.9%, 54.1%, 0%, 4.3%) |
| CIE-LAB | lab(61.18, 54.43, -53.88) |
| CIE-LCH | lch(61.18, 76.58, 315.29°) |
| OKLab | oklab(68.83% 0.1292 -0.151) |
| OKLCH | oklch(68.83% 0.199 310.5) |
| XYZ | xyz(44.1126, 29.4583, 88.9326) |
| Luminance | 0.2946 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Easter Purple
#C071FE
ΔE00 1.59
Light Purple
#BF77F6
ΔE00 1.63
Light Urple
#B36FF6
ΔE00 2.75
Bright Lavender
#C760FF
ΔE00 3.32
Bright Lilac
#C95EFB
ΔE00 3.53
Heliotrope
#D94FF5
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170F4 #A3F470
analogous
#7F70F4 #C170F4 #F470E5
triadic
#C170F4 #F4C170 #70F4C1
tetradic
#C170F4 #F47F70 #A3F470 #70E5F4
square
#C170F4 #F47F70 #A3F470 #70E5F4
split-complementary
#C170F4 #E5F470 #70F47F
monochromatic
#8C11D9 #A837F0 #C170F4 #DAA9F8 #F2E2FD
Accessibility & contrast
On white
3.05
#C170F4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.89
#C170F4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170F4
6.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170F4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170F4 | 1.00 | 3.05 | 6.89 | 6.89 |
| #FFFFFF | 3.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4990F8
Deuteranopia (green-blind)
#6595F1
Tritanopia (blue-blind)
#BB87A8
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #c170f4; /* rgb */ color: rgb(193, 112, 244); /* oklch */ color: oklch(68.8% 0.199 310.5);
Tailwind
colors: {
custom: {
50: '#d79cf8',
500: '#c170f4',
950: '#000000',
},
}SCSS
$custom: #c170f4; $custom-light: #d79cf8; $custom-dark: #000000;
JSON
{
"hex": "#c170f4",
"rgb": {
"r": 193,
"g": 112,
"b": 244
},
"hsl": {
"h": 276.818,
"s": 85.714,
"l": 69.804
},
"oklch": {
"l": 0.68831,
"c": 0.19877,
"h": 310.5
},
"luminance": 0.29457
}Semantic roles & 50–950 ramp
primary
#C170F4
secondary
#DCF3CD
accent
#E20359
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85