#C170F2#C170F2
#C170F2 is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.7% C 0.197 H 311.0°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #C170F2 |
|---|---|
| RGB | rgb(193, 112, 242) |
| HSL | hsl(277, 83%, 69%) |
| HSV | hsv(277, 54%, 95%) |
| CMYK | cmyk(20.2%, 53.7%, 0%, 5.1%) |
| CIE-LAB | lab(61.08, 54.00, -52.94) |
| CIE-LCH | lch(61.08, 75.62, 315.57°) |
| OKLab | oklab(68.72% 0.1291 -0.1483) |
| OKLCH | oklch(68.72% 0.197 311) |
| XYZ | xyz(43.8106, 29.3375, 87.3420) |
| Luminance | 0.2934 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.74
Easter Purple
#C071FE
ΔE00 1.89
Light Urple
#B36FF6
ΔE00 2.90
Bright Lavender
#C760FF
ΔE00 3.45
Bright Lilac
#C95EFB
ΔE00 3.59
Heliotrope
#D94FF5
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170F2 #A1F270
analogous
#8070F2 #C170F2 #F270E2
triadic
#C170F2 #F2C170 #70F2C1
tetradic
#C170F2 #F28070 #A1F270 #70E2F2
square
#C170F2 #F28070 #A1F270 #70E2F2
split-complementary
#C170F2 #E2F270 #70F280
monochromatic
#8C13D4 #A938ED #C170F2 #D9A8F7 #F2E0FC
Accessibility & contrast
On white
3.06
#C170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.87
#C170F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170F2
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170F2 | 1.00 | 3.06 | 6.87 | 6.87 |
| #FFFFFF | 3.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#6695EF
Tritanopia (blue-blind)
#BB86A7
Achromatopsia (no color)
#939393
Design tokens & code
CSS
--color: #c170f2; /* rgb */ color: rgb(193, 112, 242); /* oklch */ color: oklch(68.7% 0.197 311.0);
Tailwind
colors: {
custom: {
50: '#d69cf7',
500: '#c170f2',
950: '#000000',
},
}SCSS
$custom: #c170f2; $custom-light: #d69cf7; $custom-dark: #000000;
JSON
{
"hex": "#c170f2",
"rgb": {
"r": 193,
"g": 112,
"b": 242
},
"hsl": {
"h": 277.385,
"s": 83.333,
"l": 69.412
},
"oklch": {
"l": 0.68719,
"c": 0.19662,
"h": 311
},
"luminance": 0.29337
}Semantic roles & 50–950 ramp
primary
#C170F2
secondary
#DAF2CC
accent
#E00658
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85