#C17DEC#C17DEC
#C17DEC is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.3% C 0.170 H 311.0°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #C17DEC |
|---|---|
| RGB | rgb(193, 125, 236) |
| HSL | hsl(277, 74%, 71%) |
| HSV | hsv(277, 47%, 93%) |
| CMYK | cmyk(18.2%, 47%, 0%, 7.5%) |
| CIE-LAB | lab(63.39, 45.93, -45.95) |
| CIE-LCH | lch(63.39, 64.97, 314.99°) |
| OKLab | oklab(70.34% 0.1113 -0.128) |
| OKLCH | oklch(70.34% 0.17 311) |
| XYZ | xyz(44.4635, 32.0616, 83.1868) |
| Luminance | 0.3206 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.40
Easter Purple
#C071FE
ΔE00 4.10
Liliac
#C48EFD
ΔE00 4.67
Light Urple
#B36FF6
ΔE00 5.03
Bright Lavender
#C760FF
ΔE00 6.59
Bright Lilac
#C95EFB
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C17DEC #A8EC7D
analogous
#897DEC #C17DEC #EC7DDF
triadic
#C17DEC #ECC17D #7DECC1
tetradic
#C17DEC #EC897D #A8EC7D #7DDFEC
square
#C17DEC #EC897D #A8EC7D #7DDFEC
split-complementary
#C17DEC #DFEC7D #7DEC89
monochromatic
#8B1ED0 #A848E4 #C17DEC #DAB2F4 #F2E4FB
Accessibility & contrast
On white
2.83
#C17DEC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.41
#C17DEC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C17DEC
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C17DEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C17DEC | 1.00 | 2.83 | 7.41 | 7.41 |
| #FFFFFF | 2.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6396F0
Deuteranopia (green-blind)
#769BE9
Tritanopia (blue-blind)
#BC8FA9
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #c17dec; /* rgb */ color: rgb(193, 125, 236); /* oklch */ color: oklch(70.3% 0.170 311.0);
Tailwind
colors: {
custom: {
50: '#d6a4f2',
500: '#c17dec',
950: '#000000',
},
}SCSS
$custom: #c17dec; $custom-light: #d6a4f2; $custom-dark: #000000;
JSON
{
"hex": "#c17dec",
"rgb": {
"r": 193,
"g": 125,
"b": 236
},
"hsl": {
"h": 276.757,
"s": 74.497,
"l": 70.784
},
"oklch": {
"l": 0.70335,
"c": 0.16962,
"h": 311
},
"luminance": 0.32061
}Semantic roles & 50–950 ramp
primary
#C17DEC
secondary
#DFF1D3
accent
#D70F5C
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F17
muted
#837F85