#C172EE#C172EE
#C172EE is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.8% C 0.189 H 311.8°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).
Color values
| HEX | #C172EE |
|---|---|
| RGB | rgb(193, 114, 238) |
| HSL | hsl(278, 78%, 69%) |
| HSV | hsv(278, 52%, 93%) |
| CMYK | cmyk(18.9%, 52.1%, 0%, 6.7%) |
| CIE-LAB | lab(61.26, 52.12, -50.43) |
| CIE-LCH | lch(61.26, 72.52, 315.94°) |
| OKLab | oklab(68.79% 0.1262 -0.141) |
| OKLCH | oklch(68.79% 0.189 311.8) |
| XYZ | xyz(43.4395, 29.5461, 84.2870) |
| Luminance | 0.2954 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.79
Easter Purple
#C071FE
ΔE00 2.54
Light Urple
#B36FF6
ΔE00 3.40
Bright Lavender
#C760FF
ΔE00 4.14
Bright Lilac
#C95EFB
ΔE00 4.19
Heliotrope
#D94FF5
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C172EE #9FEE72
analogous
#8372EE #C172EE #EE72DD
triadic
#C172EE #EEC172 #72EEC1
tetradic
#C172EE #EE8372 #9FEE72 #72DDEE
square
#C172EE #EE8372 #9FEE72 #72DDEE
split-complementary
#C172EE #DDEE72 #72EE83
monochromatic
#8C19CD #A93BE7 #C172EE #D9A9F5 #F1DFFB
Accessibility & contrast
On white
3.04
#C172EE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.91
#C172EE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C172EE
6.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C172EE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C172EE | 1.00 | 3.04 | 6.91 | 6.91 |
| #FFFFFF | 3.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5190F2
Deuteranopia (green-blind)
#6B96EB
Tritanopia (blue-blind)
#BC87A5
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #c172ee; /* rgb */ color: rgb(193, 114, 238); /* oklch */ color: oklch(68.8% 0.189 311.8);
Tailwind
colors: {
custom: {
50: '#d69df4',
500: '#c172ee',
950: '#000000',
},
}SCSS
$custom: #c172ee; $custom-light: #d69df4; $custom-dark: #000000;
JSON
{
"hex": "#c172ee",
"rgb": {
"r": 193,
"g": 114,
"b": 238
},
"hsl": {
"h": 278.226,
"s": 78.481,
"l": 69.02
},
"oklch": {
"l": 0.68786,
"c": 0.18924,
"h": 311.8
},
"luminance": 0.29545
}Semantic roles & 50–950 ramp
primary
#C172EE
secondary
#D9F0CC
accent
#DB0B56
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85