#C170B7#C170B7
#C170B7 is a light, vivid purple. Relative luminance 0.263; OKLCH L 65.8% C 0.137 H 331.6°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #C170B7 |
|---|---|
| RGB | rgb(193, 112, 183) |
| HSL | hsl(307, 40%, 60%) |
| HSV | hsv(307, 42%, 76%) |
| CMYK | cmyk(0%, 42%, 5.2%, 24.3%) |
| CIE-LAB | lab(58.36, 42.34, -23.96) |
| CIE-LCH | lch(58.36, 48.65, 330.49°) |
| OKLab | oklab(65.82% 0.1202 -0.0649) |
| OKLCH | oklch(65.82% 0.137 331.6) |
| XYZ | xyz(36.3334, 26.3466, 47.9622) |
| Luminance | 0.2635 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Orchid (survey)
#C875C4
ΔE00 2.63
Purplish Pink
#CE5DAE
ΔE00 4.87
Pale Magenta
#D767AD
ΔE00 5.43
Soft Purple
#A66FB5
ΔE00 5.84
Orchid
#DA70D6
ΔE00 6.15
Wisteria
#A87DC2
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C170B7 #70C17A
analogous
#A270C1 #C170B7 #C1708F
triadic
#C170B7 #B7C170 #70B7C1
tetradic
#C170B7 #C1A270 #70C17A #708FC1
square
#C170B7 #C1A270 #70C17A #708FC1
split-complementary
#C170B7 #8FC170 #70C1A2
monochromatic
#7F3776 #AA4A9E #C170B7 #D49BCC #E6C5E2
Accessibility & contrast
On white
3.35
#C170B7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#C170B7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C170B7
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C170B7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C170B7 | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6E85BA
Deuteranopia (green-blind)
#8390B5
Tritanopia (blue-blind)
#C7758B
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #c170b7; /* rgb */ color: rgb(193, 112, 183); /* oklch */ color: oklch(65.8% 0.137 331.6);
Tailwind
colors: {
custom: {
50: '#d59bcc',
500: '#c170b7',
950: '#000000',
},
}SCSS
$custom: #c170b7; $custom-light: #d59bcc; $custom-dark: #000000;
JSON
{
"hex": "#c170b7",
"rgb": {
"r": 193,
"g": 112,
"b": 183
},
"hsl": {
"h": 307.407,
"s": 39.512,
"l": 59.804
},
"oklch": {
"l": 0.65817,
"c": 0.13662,
"h": 331.6
},
"luminance": 0.26345
}Semantic roles & 50–950 ramp
primary
#C170B7
secondary
#B7D6BB
accent
#CF6758
background
#FDF9FC
surface
#FAF2F9
border
#D3CCD2
text
#140E13
muted
#837E82