#9157BC#9157BC
#9157BC is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.6% C 0.159 H 308.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #9157BC |
|---|---|
| RGB | rgb(145, 87, 188) |
| HSL | hsl(274, 43%, 54%) |
| HSV | hsv(274, 54%, 74%) |
| CMYK | cmyk(22.9%, 53.7%, 0%, 26.3%) |
| CIE-LAB | lab(47.58, 42.67, -44.13) |
| CIE-LCH | lch(47.58, 61.39, 314.04°) |
| OKLab | oklab(56.6% 0.0992 -0.1238) |
| OKLCH | oklch(56.6% 0.159 308.7) |
| XYZ | xyz(24.1606, 16.4673, 49.4729) |
| Luminance | 0.1647 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.28
Amethyst
#9B5FC0
ΔE00 3.22
Royal Purple
#7851A9
ΔE00 5.79
Purply
#983FB2
ΔE00 5.91
Lightish Purple
#A552E6
ΔE00 6.91
Deep Lilac
#966EBD
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9157BC #82BC57
analogous
#5F57BC #9157BC #BC57B5
triadic
#9157BC #BC9157 #57BC91
tetradic
#9157BC #BC5F57 #82BC57 #57B5BC
square
#9157BC #BC5F57 #82BC57 #57B5BC
split-complementary
#9157BC #B5BC57 #57BC5F
monochromatic
#512C6D #723D99 #9157BC #AE83CD #CAAFDF
Accessibility & contrast
On white
4.89
#9157BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.29
#9157BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9157BC
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9157BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9157BC | 1.00 | 4.89 | 4.29 | 4.89 |
| #FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#396EBF
Deuteranopia (green-blind)
#4C72B9
Tritanopia (blue-blind)
#8B6981
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9157bc; /* rgb */ color: rgb(145, 87, 188); /* oklch */ color: oklch(56.6% 0.159 308.7);
Tailwind
colors: {
custom: {
50: '#b488d1',
500: '#9157bc',
950: '#000000',
},
}SCSS
$custom: #9157bc; $custom-light: #b488d1; $custom-dark: #000000;
JSON
{
"hex": "#9157bc",
"rgb": {
"r": 145,
"g": 87,
"b": 188
},
"hsl": {
"h": 274.455,
"s": 42.979,
"l": 53.922
},
"oklch": {
"l": 0.56602,
"c": 0.15864,
"h": 308.7
},
"luminance": 0.16467
}Semantic roles & 50–950 ramp
primary
#9157BC
secondary
#B4CDA2
accent
#D3558B
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82