#C172FE#C172FE
#C172FE is a light, highly saturated violet. Relative luminance 0.305; OKLCH L 69.7% C 0.207 H 308.0°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #C172FE |
|---|---|
| RGB | rgb(193, 114, 254) |
| HSL | hsl(274, 99%, 72%) |
| HSV | hsv(274, 55%, 100%) |
| CMYK | cmyk(24%, 55.1%, 0%, 0.4%) |
| CIE-LAB | lab(62.11, 55.60, -57.92) |
| CIE-LCH | lch(62.11, 80.28, 313.83°) |
| OKLab | oklab(69.68% 0.1272 -0.1629) |
| OKLCH | oklch(69.68% 0.207 308) |
| XYZ | xyz(45.8954, 30.5284, 97.2215) |
| Luminance | 0.3053 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Easter Purple
#C071FE
ΔE00 0.30
Light Purple
#BF77F6
ΔE00 1.57
Light Urple
#B36FF6
ΔE00 2.63
Bright Lavender
#C760FF
ΔE00 3.52
Bright Lilac
#C95EFB
ΔE00 4.01
Liliac
#C48EFD
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C172FE #AFFE72
analogous
#7B72FE #C172FE #FE72F5
triadic
#C172FE #FEC172 #72FEC1
tetradic
#C172FE #FE7B72 #AFFE72 #72F5FE
square
#C172FE #FE7B72 #AFFE72 #72F5FE
split-complementary
#C172FE #F5FE72 #72FE7B
monochromatic
#8A02F4 #A635FE #C172FE #DCAFFE #F2E1FF
Accessibility & contrast
On white
2.96
#C172FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.11
#C172FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C172FE
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C172FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C172FE | 1.00 | 2.96 | 7.11 | 7.11 |
| #FFFFFF | 2.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4293FF
Deuteranopia (green-blind)
#5F97FB
Tritanopia (blue-blind)
#B88CAD
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #c172fe; /* rgb */ color: rgb(193, 114, 254); /* oklch */ color: oklch(69.7% 0.207 308.0);
Tailwind
colors: {
custom: {
50: '#d79dff',
500: '#c172fe',
950: '#000000',
},
}SCSS
$custom: #c172fe; $custom-light: #d79dff; $custom-dark: #000000;
JSON
{
"hex": "#c172fe",
"rgb": {
"r": 193,
"g": 114,
"b": 254
},
"hsl": {
"h": 273.857,
"s": 98.592,
"l": 72.157
},
"oklch": {
"l": 0.69683,
"c": 0.20663,
"h": 308
},
"luminance": 0.30528
}Semantic roles & 50–950 ramp
primary
#C172FE
secondary
#E3F7D4
accent
#E60064
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150F18
muted
#837E86