#C172EB#C172EB
#C172EB is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.6% C 0.186 H 312.6°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).
Color values
| HEX | #C172EB |
|---|---|
| RGB | rgb(193, 114, 235) |
| HSL | hsl(279, 75%, 68%) |
| HSV | hsv(279, 51%, 92%) |
| CMYK | cmyk(17.9%, 51.5%, 0%, 7.8%) |
| CIE-LAB | lab(61.11, 51.48, -49.01) |
| CIE-LCH | lch(61.11, 71.08, 316.41°) |
| OKLab | oklab(68.62% 0.1259 -0.1369) |
| OKLCH | oklch(68.62% 0.186 312.6) |
| XYZ | xyz(43.0024, 29.3712, 81.9851) |
| Luminance | 0.2937 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.19
Easter Purple
#C071FE
ΔE00 3.02
Light Urple
#B36FF6
ΔE00 3.74
Bright Lilac
#C95EFB
ΔE00 4.39
Bright Lavender
#C760FF
ΔE00 4.42
Heliotrope
#D94FF5
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C172EB #9CEB72
analogous
#8472EB #C172EB #EB72D8
triadic
#C172EB #EBC172 #72EBC1
tetradic
#C172EB #EB8472 #9CEB72 #72D8EB
square
#C172EB #EB8472 #9CEB72 #72D8EB
split-complementary
#C172EB #D8EB72 #72EB84
monochromatic
#8B1CC6 #A93CE3 #C172EB #D9A8F3 #F0DDFA
Accessibility & contrast
On white
3.05
#C172EB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.87
#C172EB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C172EB
6.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C172EB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C172EB | 1.00 | 3.05 | 6.87 | 6.87 |
| #FFFFFF | 3.05 | 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)
#548FEF
Deuteranopia (green-blind)
#6C95E8
Tritanopia (blue-blind)
#BD86A4
Achromatopsia (no color)
#939393
Design tokens & code
CSS
--color: #c172eb; /* rgb */ color: rgb(193, 114, 235); /* oklch */ color: oklch(68.6% 0.186 312.6);
Tailwind
colors: {
custom: {
50: '#d69df2',
500: '#c172eb',
950: '#000000',
},
}SCSS
$custom: #c172eb; $custom-light: #d69df2; $custom-dark: #000000;
JSON
{
"hex": "#c172eb",
"rgb": {
"r": 193,
"g": 114,
"b": 235
},
"hsl": {
"h": 279.174,
"s": 75.155,
"l": 68.431
},
"oklch": {
"l": 0.68623,
"c": 0.18599,
"h": 312.6
},
"luminance": 0.2937
}Semantic roles & 50–950 ramp
primary
#C172EB
secondary
#D7EFCA
accent
#D70E54
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E17
muted
#837E85