#C172EF#C172EF
#C172EF is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.8% C 0.190 H 311.6°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).
Color values
| HEX | #C172EF |
|---|---|
| RGB | rgb(193, 114, 239) |
| HSL | hsl(278, 80%, 69%) |
| HSV | hsv(278, 52%, 94%) |
| CMYK | cmyk(19.2%, 52.3%, 0%, 6.3%) |
| CIE-LAB | lab(61.31, 52.33, -50.90) |
| CIE-LCH | lch(61.31, 73.01, 315.79°) |
| OKLab | oklab(68.84% 0.1263 -0.1424) |
| OKLCH | oklch(68.84% 0.19 311.6) |
| XYZ | xyz(43.5868, 29.6050, 85.0629) |
| Luminance | 0.2960 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.67
Easter Purple
#C071FE
ΔE00 2.38
Light Urple
#B36FF6
ΔE00 3.30
Bright Lavender
#C760FF
ΔE00 4.06
Bright Lilac
#C95EFB
ΔE00 4.13
Heliotrope
#D94FF5
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C172EF #A0EF72
analogous
#8372EF #C172EF #EF72DF
triadic
#C172EF #EFC172 #72EFC1
tetradic
#C172EF #EF8372 #A0EF72 #72DFEF
square
#C172EF #EF8372 #A0EF72 #72DFEF
split-complementary
#C172EF #DFEF72 #72EF83
monochromatic
#8C18CF #A93BE9 #C172EF #D9A9F5 #F1E0FB
Accessibility & contrast
On white
3.03
#C172EF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.92
#C172EF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C172EF
6.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C172EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C172EF | 1.00 | 3.03 | 6.92 | 6.92 |
| #FFFFFF | 3.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5190F3
Deuteranopia (green-blind)
#6A96EC
Tritanopia (blue-blind)
#BC87A6
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #c172ef; /* rgb */ color: rgb(193, 114, 239); /* oklch */ color: oklch(68.8% 0.190 311.6);
Tailwind
colors: {
custom: {
50: '#d69df5',
500: '#c172ef',
950: '#000000',
},
}SCSS
$custom: #c172ef; $custom-light: #d69df5; $custom-dark: #000000;
JSON
{
"hex": "#c172ef",
"rgb": {
"r": 193,
"g": 114,
"b": 239
},
"hsl": {
"h": 277.92,
"s": 79.618,
"l": 69.216
},
"oklch": {
"l": 0.6884,
"c": 0.19032,
"h": 311.6
},
"luminance": 0.29604
}Semantic roles & 50–950 ramp
primary
#C172EF
secondary
#DAF1CC
accent
#DC0A57
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85