#C172F3#C172F3
#C172F3 is a light, vivid violet. Relative luminance 0.298; OKLCH L 69.1% C 0.195 H 310.6°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).
Color values
| HEX | #C172F3 |
|---|---|
| RGB | rgb(193, 114, 243) |
| HSL | hsl(277, 84%, 70%) |
| HSV | hsv(277, 53%, 95%) |
| CMYK | cmyk(20.6%, 53.1%, 0%, 4.7%) |
| CIE-LAB | lab(61.52, 53.19, -52.79) |
| CIE-LCH | lch(61.52, 74.94, 315.22°) |
| OKLab | oklab(69.06% 0.1266 -0.1479) |
| OKLCH | oklch(69.06% 0.195 310.6) |
| XYZ | xyz(44.1843, 29.8440, 88.2095) |
| Luminance | 0.2984 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.29
Easter Purple
#C071FE
ΔE00 1.75
Light Urple
#B36FF6
ΔE00 2.95
Bright Lavender
#C760FF
ΔE00 3.78
Bright Lilac
#C95EFB
ΔE00 3.97
Heliotrope
#D94FF5
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C172F3 #A4F372
analogous
#8072F3 #C172F3 #F372E5
triadic
#C172F3 #F3C172 #72F3C1
tetradic
#C172F3 #F38072 #A4F372 #72E5F3
square
#C172F3 #F38072 #A4F372 #72E5F3
split-complementary
#C172F3 #E5F372 #72F380
monochromatic
#8C12D8 #A83AEE #C172F3 #DAAAF8 #F3E3FD
Accessibility & contrast
On white
3.01
#C172F3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.97
#C172F3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C172F3
6.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C172F3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C172F3 | 1.00 | 3.01 | 6.97 | 6.97 |
| #FFFFFF | 3.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D91F7
Deuteranopia (green-blind)
#6796F0
Tritanopia (blue-blind)
#BB88A8
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #c172f3; /* rgb */ color: rgb(193, 114, 243); /* oklch */ color: oklch(69.1% 0.195 310.6);
Tailwind
colors: {
custom: {
50: '#d69df7',
500: '#c172f3',
950: '#000000',
},
}SCSS
$custom: #c172f3; $custom-light: #d69df7; $custom-dark: #000000;
JSON
{
"hex": "#c172f3",
"rgb": {
"r": 193,
"g": 114,
"b": 243
},
"hsl": {
"h": 276.744,
"s": 84.314,
"l": 70
},
"oklch": {
"l": 0.69061,
"c": 0.19466,
"h": 310.6
},
"luminance": 0.29843
}Semantic roles & 50–950 ramp
primary
#C172F3
secondary
#DCF2CE
accent
#E1055A
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85