#9840BA#9840BA
#9840BA is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.2% C 0.193 H 315.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #9840BA |
|---|---|
| RGB | rgb(152, 64, 186) |
| HSL | hsl(283, 49%, 49%) |
| HSV | hsv(283, 66%, 73%) |
| CMYK | cmyk(18.3%, 65.6%, 0%, 27.1%) |
| CIE-LAB | lab(44.07, 55.53, -48.52) |
| CIE-LCH | lch(44.07, 73.74, 318.86°) |
| OKLab | oklab(54.2% 0.1371 -0.1363) |
| OKLCH | oklch(54.2% 0.193 315.2) |
| XYZ | xyz(23.6438, 13.8882, 47.8801) |
| Luminance | 0.1389 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.41
Darkorchid
#9932CC
ΔE00 3.47
Barney
#AC1DB8
ΔE00 4.88
Medium Purple
#9E43A2
ΔE00 5.14
Ugly Purple
#A442A0
ΔE00 6.28
Vibrant Purple
#AD03DE
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9840BA #62BA40
analogous
#5B40BA #9840BA #BA409F
triadic
#9840BA #BA9840 #40BA98
tetradic
#9840BA #BA5B40 #62BA40 #409FBA
square
#9840BA #BA5B40 #62BA40 #409FBA
split-complementary
#9840BA #9FBA40 #40BA5B
monochromatic
#4E215F #73308C #9840BA #B16BCC #C999DC
Accessibility & contrast
On white
5.56
#9840BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#9840BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9840BA
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9840BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9840BA | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0463BE
Deuteranopia (green-blind)
#3E6BB7
Tritanopia (blue-blind)
#955778
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9840ba; /* rgb */ color: rgb(152, 64, 186); /* oklch */ color: oklch(54.2% 0.193 315.2);
Tailwind
colors: {
custom: {
50: '#ba7bcf',
500: '#9840ba',
950: '#000000',
},
}SCSS
$custom: #9840ba; $custom-light: #ba7bcf; $custom-dark: #000000;
JSON
{
"hex": "#9840ba",
"rgb": {
"r": 152,
"g": 64,
"b": 186
},
"hsl": {
"h": 283.279,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.54198,
"c": 0.19333,
"h": 315.2
},
"luminance": 0.13887
}Semantic roles & 50–950 ramp
primary
#9840BA
secondary
#9EC88E
accent
#D84F76
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82