#9157C7#9157C7
#9157C7 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.3% C 0.171 H 305.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #9157C7 |
|---|---|
| RGB | rgb(145, 87, 199) |
| HSL | hsl(271, 50%, 56%) |
| HSV | hsv(271, 56%, 78%) |
| CMYK | cmyk(27.1%, 56.3%, 0%, 22%) |
| CIE-LAB | lab(48.21, 45.26, -49.49) |
| CIE-LCH | lch(48.21, 67.07, 312.44°) |
| OKLab | oklab(57.27% 0.0997 -0.1395) |
| OKLCH | oklch(57.27% 0.171 305.6) |
| XYZ | xyz(25.3919, 16.9598, 55.9577) |
| Luminance | 0.1696 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.46
Amethyst
#9B5FC0
ΔE00 3.76
Purpley
#8756E4
ΔE00 5.22
Lightish Purple
#A552E6
ΔE00 5.40
Royal Purple
#7851A9
ΔE00 6.64
Purply
#983FB2
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9157C7 #8DC757
analogous
#5957C7 #9157C7 #C757C5
triadic
#9157C7 #C79157 #57C791
tetradic
#9157C7 #C75957 #8DC757 #57C5C7
square
#9157C7 #C75957 #8DC757 #57C5C7
split-complementary
#9157C7 #C5C757 #57C759
monochromatic
#53297B #7238A9 #9157C7 #AF85D6 #CDB3E6
Accessibility & contrast
On white
4.78
#9157C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#9157C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9157C7
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9157C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9157C7 | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D71CB
Deuteranopia (green-blind)
#4373C4
Tritanopia (blue-blind)
#886C87
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #9157c7; /* rgb */ color: rgb(145, 87, 199); /* oklch */ color: oklch(57.3% 0.171 305.6);
Tailwind
colors: {
custom: {
50: '#b489d8',
500: '#9157c7',
950: '#000000',
},
}SCSS
$custom: #9157c7; $custom-light: #b489d8; $custom-dark: #000000;
JSON
{
"hex": "#9157c7",
"rgb": {
"r": 145,
"g": 87,
"b": 199
},
"hsl": {
"h": 271.071,
"s": 50,
"l": 56.078
},
"oklch": {
"l": 0.57266,
"c": 0.17146,
"h": 305.6
},
"luminance": 0.1696
}Semantic roles & 50–950 ramp
primary
#9157C7
secondary
#BCD4A6
accent
#DA4E91
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83