#9848CB#9848CB
#9848CB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 56.3% C 0.200 H 309.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #9848CB |
|---|---|
| RGB | rgb(152, 72, 203) |
| HSL | hsl(277, 56%, 54%) |
| HSV | hsv(277, 65%, 80%) |
| CMYK | cmyk(25.1%, 64.5%, 0%, 20.4%) |
| CIE-LAB | lab(46.48, 55.47, -54.53) |
| CIE-LCH | lch(46.48, 77.78, 315.49°) |
| OKLab | oklab(56.27% 0.127 -0.154) |
| OKLCH | oklch(56.27% 0.2 309.5) |
| XYZ | xyz(26.0436, 15.6224, 58.1318) |
| Luminance | 0.1562 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.87
Purply
#983FB2
ΔE00 4.66
Lightish Purple
#A552E6
ΔE00 5.46
Amethyst
#9B5FC0
ΔE00 6.18
Purpley
#8756E4
ΔE00 6.22
Deep Lavender
#8D5EB7
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9848CB #7BCB48
analogous
#5748CB #9848CB #CB48BD
triadic
#9848CB #CB9848 #48CB98
tetradic
#9848CB #CB5748 #7BCB48 #48BDCB
square
#9848CB #CB5748 #7BCB48 #48BDCB
split-complementary
#9848CB #BDCB48 #48CB57
monochromatic
#562277 #782FA6 #9848CB #B378D9 #CEA7E6
Accessibility & contrast
On white
5.09
#9848CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#9848CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9848CB
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9848CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9848CB | 1.00 | 5.09 | 4.12 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#346FC8
Tritanopia (blue-blind)
#916383
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #9848cb; /* rgb */ color: rgb(152, 72, 203); /* oklch */ color: oklch(56.3% 0.200 309.5);
Tailwind
colors: {
custom: {
50: '#ba80db',
500: '#9848cb',
950: '#000000',
},
}SCSS
$custom: #9848cb; $custom-light: #ba80db; $custom-dark: #000000;
JSON
{
"hex": "#9848cb",
"rgb": {
"r": 152,
"g": 72,
"b": 203
},
"hsl": {
"h": 276.641,
"s": 55.745,
"l": 53.922
},
"oklch": {
"l": 0.56269,
"c": 0.19962,
"h": 309.5
},
"luminance": 0.15622
}Semantic roles & 50–950 ramp
primary
#9848CB
secondary
#B1D39B
accent
#DF4983
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83