#9172C6#9172C6
#9172C6 is a mid, vivid violet. Relative luminance 0.221; OKLCH L 61.7% C 0.127 H 299.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).
Color values
| HEX | #9172C6 |
|---|---|
| RGB | rgb(145, 114, 198) |
| HSL | hsl(262, 42%, 61%) |
| HSV | hsv(262, 42%, 78%) |
| CMYK | cmyk(26.8%, 42.4%, 0%, 22.4%) |
| CIE-LAB | lab(54.17, 29.80, -39.47) |
| CIE-LCH | lch(54.17, 49.46, 307.05°) |
| OKLab | oklab(61.69% 0.0629 -0.1103) |
| OKLCH | oklch(61.69% 0.127 299.7) |
| XYZ | xyz(27.8851, 22.1314, 56.2178) |
| Luminance | 0.2213 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lilac
#966EBD
ΔE00 2.75
Mediumpurple
#9370DB
ΔE00 3.82
Amethyst
#9B5FC0
ΔE00 6.33
Deep Lavender
#8D5EB7
ΔE00 6.62
Wisteria
#A87DC2
ΔE00 6.69
Soft Purple
#A66FB5
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9172C6 #A7C672
analogous
#727DC6 #9172C6 #BB72C6
triadic
#9172C6 #C69172 #72C691
tetradic
#9172C6 #C6727D #A7C672 #72C6BB
square
#9172C6 #C6727D #A7C672 #72C6BB
split-complementary
#9172C6 #C6BB72 #7DC672
monochromatic
#543787 #6F48B3 #9172C6 #B39ED8 #D5C9E9
Accessibility & contrast
On white
3.87
#9172C6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.43
#9172C6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9172C6
5.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9172C6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9172C6 | 1.00 | 3.87 | 5.43 | 5.43 |
| #FFFFFF | 3.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B81C9
Deuteranopia (green-blind)
#6181C4
Tritanopia (blue-blind)
#878192
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #9172c6; /* rgb */ color: rgb(145, 114, 198); /* oklch */ color: oklch(61.7% 0.127 299.7);
Tailwind
colors: {
custom: {
50: '#b39bd7',
500: '#9172c6',
950: '#000000',
},
}SCSS
$custom: #9172c6; $custom-light: #b39bd7; $custom-dark: #000000;
JSON
{
"hex": "#9172c6",
"rgb": {
"r": 145,
"g": 114,
"b": 198
},
"hsl": {
"h": 262.143,
"s": 42.424,
"l": 61.176
},
"oklch": {
"l": 0.61686,
"c": 0.127,
"h": 299.7
},
"luminance": 0.22132
}Semantic roles & 50–950 ramp
primary
#9172C6
secondary
#CEDABA
accent
#B63084
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83