#C172F5#C172F5
#C172F5 is a light, vivid violet. Relative luminance 0.300; OKLCH L 69.2% C 0.197 H 310.1°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).
Color values
| HEX | #C172F5 |
|---|---|
| RGB | rgb(193, 114, 245) |
| HSL | hsl(276, 87%, 70%) |
| HSV | hsv(276, 53%, 96%) |
| CMYK | cmyk(21.2%, 53.5%, 0%, 3.9%) |
| CIE-LAB | lab(61.62, 53.63, -53.73) |
| CIE-LCH | lch(61.62, 75.91, 314.95°) |
| OKLab | oklab(69.17% 0.1267 -0.1506) |
| OKLCH | oklch(69.17% 0.197 310.1) |
| XYZ | xyz(44.4880, 29.9655, 89.8088) |
| Luminance | 0.2997 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.18
Easter Purple
#C071FE
ΔE00 1.44
Light Urple
#B36FF6
ΔE00 2.81
Bright Lavender
#C760FF
ΔE00 3.67
Bright Lilac
#C95EFB
ΔE00 3.92
Heliotrope
#D94FF5
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C172F5 #A6F572
analogous
#7F72F5 #C172F5 #F572E8
triadic
#C172F5 #F5C172 #72F5C1
tetradic
#C172F5 #F57F72 #A6F572 #72E8F5
square
#C172F5 #F57F72 #A6F572 #72E8F5
split-complementary
#C172F5 #E8F572 #72F57F
monochromatic
#8B10DD #A839F1 #C172F5 #DAABF9 #F2E2FD
Accessibility & contrast
On white
3.00
#C172F5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.99
#C172F5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C172F5
6.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C172F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C172F5 | 1.00 | 3.00 | 6.99 | 6.99 |
| #FFFFFF | 3.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B91F9
Deuteranopia (green-blind)
#6696F2
Tritanopia (blue-blind)
#BA89A9
Achromatopsia (no color)
#959595
Design tokens & code
CSS
--color: #c172f5; /* rgb */ color: rgb(193, 114, 245); /* oklch */ color: oklch(69.2% 0.197 310.1);
Tailwind
colors: {
custom: {
50: '#d69df9',
500: '#c172f5',
950: '#000000',
},
}SCSS
$custom: #c172f5; $custom-light: #d69df9; $custom-dark: #000000;
JSON
{
"hex": "#c172f5",
"rgb": {
"r": 193,
"g": 114,
"b": 245
},
"hsl": {
"h": 276.183,
"s": 86.755,
"l": 70.392
},
"oklch": {
"l": 0.69172,
"c": 0.19683,
"h": 310.1
},
"luminance": 0.29965
}Semantic roles & 50–950 ramp
primary
#C172F5
secondary
#DEF3CF
accent
#E3025C
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85