#9848BF#9848BF
#9848BF is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.5% C 0.187 H 312.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).
Color values
| HEX | #9848BF |
|---|---|
| RGB | rgb(152, 72, 191) |
| HSL | hsl(280, 48%, 52%) |
| HSV | hsv(280, 62%, 75%) |
| CMYK | cmyk(20.4%, 62.3%, 0%, 25.1%) |
| CIE-LAB | lab(45.73, 52.85, -48.77) |
| CIE-LCH | lch(45.73, 71.91, 317.29°) |
| OKLab | oklab(55.5% 0.1275 -0.1371) |
| OKLCH | oklch(55.5% 0.187 312.9) |
| XYZ | xyz(24.6686, 15.0724, 50.8899) |
| Luminance | 0.1507 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.94
Darkorchid
#9932CC
ΔE00 4.25
Deep Lavender
#8D5EB7
ΔE00 5.89
Medium Purple
#9E43A2
ΔE00 5.89
Amethyst
#9B5FC0
ΔE00 5.93
Barney
#AC1DB8
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9848BF #6FBF48
analogous
#5D48BF #9848BF #BF48AB
triadic
#9848BF #BF9848 #48BF98
tetradic
#9848BF #BF5D48 #6FBF48 #48ABBF
square
#9848BF #BF5D48 #6FBF48 #48ABBF
split-complementary
#9848BF #ABBF48 #48BF5D
monochromatic
#522468 #763496 #9848BF #B275CF #CBA3DF
Accessibility & contrast
On white
5.23
#9848BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.01
#9848BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9848BF
5.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9848BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9848BF | 1.00 | 5.23 | 4.01 | 5.23 |
| #FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.01 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1868C3
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#945E7D
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #9848bf; /* rgb */ color: rgb(152, 72, 191); /* oklch */ color: oklch(55.5% 0.187 312.9);
Tailwind
colors: {
custom: {
50: '#ba80d3',
500: '#9848bf',
950: '#000000',
},
}SCSS
$custom: #9848bf; $custom-light: #ba80d3; $custom-dark: #000000;
JSON
{
"hex": "#9848bf",
"rgb": {
"r": 152,
"g": 72,
"b": 191
},
"hsl": {
"h": 280.336,
"s": 48.178,
"l": 51.569
},
"oklch": {
"l": 0.55495,
"c": 0.18721,
"h": 312.9
},
"luminance": 0.15072
}Semantic roles & 50–950 ramp
primary
#9848BF
secondary
#A8CC97
accent
#D8507D
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120A14
muted
#817C83