#C170B4#C170B4
#C170B4 is a light, vivid purple. Relative luminance 0.262; OKLCH L 65.7% C 0.134 H 333.1°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #C170B4 |
|---|---|
| RGB | rgb(193, 112, 180) |
| HSL | hsl(310, 40%, 60%) |
| HSV | hsv(310, 42%, 76%) |
| CMYK | cmyk(0%, 42%, 6.7%, 24.3%) |
| CIE-LAB | lab(58.25, 41.81, -22.42) |
| CIE-LCH | lch(58.25, 47.44, 331.80°) |
| OKLab | oklab(65.69% 0.1195 -0.0606) |
| OKLCH | oklch(65.69% 0.134 333.1) |
| XYZ | xyz(36.0245, 26.2231, 46.3352) |
| Luminance | 0.2622 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Orchid (survey)
#C875C4
ΔE00 3.15
Purplish Pink
#CE5DAE
ΔE00 4.69
Pale Magenta
#D767AD
ΔE00 5.04
Soft Purple
#A66FB5
ΔE00 6.13
Orchid
#DA70D6
ΔE00 6.63
Dark Lilac
#9C6DA5
ΔE00 7.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170B4 #70C17D
analogous
#A670C1 #C170B4 #C1708B
triadic
#C170B4 #B4C170 #70B4C1
tetradic
#C170B4 #C1A670 #70C17D #708BC1
square
#C170B4 #C1A670 #70C17D #708BC1
split-complementary
#C170B4 #8BC170 #70C1A6
monochromatic
#7F3774 #AA4A9B #C170B4 #D49BCA #E6C5E1
Accessibility & contrast
On white
3.36
#C170B4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.24
#C170B4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170B4
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170B4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170B4 | 1.00 | 3.36 | 6.24 | 6.24 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6F85B6
Deuteranopia (green-blind)
#8490B2
Tritanopia (blue-blind)
#C8758A
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #c170b4; /* rgb */ color: rgb(193, 112, 180); /* oklch */ color: oklch(65.7% 0.134 333.1);
Tailwind
colors: {
custom: {
50: '#d59bca',
500: '#c170b4',
950: '#000000',
},
}SCSS
$custom: #c170b4; $custom-light: #d59bca; $custom-dark: #000000;
JSON
{
"hex": "#c170b4",
"rgb": {
"r": 193,
"g": 112,
"b": 180
},
"hsl": {
"h": 309.63,
"s": 39.512,
"l": 59.804
},
"oklch": {
"l": 0.65691,
"c": 0.13397,
"h": 333.1
},
"luminance": 0.26221
}Semantic roles & 50–950 ramp
primary
#C170B4
secondary
#B7D6BC
accent
#CF6B58
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140E13
muted
#837E82