#9856BF#9856BF
#9856BF is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.4% C 0.166 H 311.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #9856BF |
|---|---|
| RGB | rgb(152, 86, 191) |
| HSL | hsl(278, 45%, 54%) |
| HSV | hsv(278, 55%, 75%) |
| CMYK | cmyk(20.4%, 55%, 0%, 25.1%) |
| CIE-LAB | lab(48.38, 45.75, -44.56) |
| CIE-LCH | lch(48.38, 63.86, 315.75°) |
| OKLab | oklab(57.43% 0.1096 -0.1248) |
| OKLCH | oklch(57.43% 0.166 311.3) |
| XYZ | xyz(25.6789, 17.0931, 51.2267) |
| Luminance | 0.1709 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.61
Deep Lavender
#8D5EB7
ΔE00 3.18
Purply
#983FB2
ΔE00 5.73
Lightish Purple
#A552E6
ΔE00 6.12
Mediumorchid
#BA55D3
ΔE00 6.78
Deep Lilac
#966EBD
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9856BF #7DBF56
analogous
#6456BF #9856BF #BF56B2
triadic
#9856BF #BF9856 #56BF98
tetradic
#9856BF #BF6456 #7DBF56 #56B2BF
square
#9856BF #BF6456 #7DBF56 #56B2BF
split-complementary
#9856BF #B2BF56 #56BF64
monochromatic
#562A70 #783B9D #9856BF #B382D0 #CEAFE1
Accessibility & contrast
On white
4.75
#9856BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.42
#9856BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9856BF
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9856BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9856BF | 1.00 | 4.75 | 4.42 | 4.75 |
| #FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3870C2
Deuteranopia (green-blind)
#4E74BC
Tritanopia (blue-blind)
#936882
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #9856bf; /* rgb */ color: rgb(152, 86, 191); /* oklch */ color: oklch(57.4% 0.166 311.3);
Tailwind
colors: {
custom: {
50: '#b988d3',
500: '#9856bf',
950: '#000000',
},
}SCSS
$custom: #9856bf; $custom-light: #b988d3; $custom-dark: #000000;
JSON
{
"hex": "#9856bf",
"rgb": {
"r": 152,
"g": 86,
"b": 191
},
"hsl": {
"h": 277.714,
"s": 45.064,
"l": 54.314
},
"oklch": {
"l": 0.57425,
"c": 0.16611,
"h": 311.3
},
"luminance": 0.17093
}Semantic roles & 50–950 ramp
primary
#9856BF
secondary
#B3CFA2
accent
#D55383
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#120C14
muted
#817D83