#9842BB#9842BB
#9842BB is a mid, vivid purple. Relative luminance 0.142; OKLCH L 54.5% C 0.192 H 314.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #9842BB |
|---|---|
| RGB | rgb(152, 66, 187) |
| HSL | hsl(283, 48%, 50%) |
| HSV | hsv(283, 65%, 73%) |
| CMYK | cmyk(18.7%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(44.46, 54.82, -48.48) |
| CIE-LCH | lch(44.46, 73.18, 318.52°) |
| OKLab | oklab(54.5% 0.1348 -0.1362) |
| OKLCH | oklch(54.5% 0.192 314.7) |
| XYZ | xyz(23.8653, 14.1605, 48.4802) |
| Luminance | 0.1416 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.68
Darkorchid
#9932CC
ΔE00 3.61
Barney
#AC1DB8
ΔE00 5.20
Medium Purple
#9E43A2
ΔE00 5.24
Ugly Purple
#A442A0
ΔE00 6.36
Vibrant Purple
#AD03DE
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9842BB #65BB42
analogous
#5C42BB #9842BB #BB42A1
triadic
#9842BB #BB9842 #42BB98
tetradic
#9842BB #BB5C42 #65BB42 #42A1BB
square
#9842BB #BB5C42 #65BB42 #42A1BB
split-complementary
#9842BB #A1BB42 #42BB5C
monochromatic
#4E2261 #73328E #9842BB #B16ECC #C99CDC
Accessibility & contrast
On white
5.48
#9842BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#9842BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9842BB
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9842BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9842BB | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B64BF
Deuteranopia (green-blind)
#3F6BB8
Tritanopia (blue-blind)
#955979
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #9842bb; /* rgb */ color: rgb(152, 66, 187); /* oklch */ color: oklch(54.5% 0.192 314.7);
Tailwind
colors: {
custom: {
50: '#ba7cd0',
500: '#9842bb',
950: '#000000',
},
}SCSS
$custom: #9842bb; $custom-light: #ba7cd0; $custom-dark: #000000;
JSON
{
"hex": "#9842bb",
"rgb": {
"r": 152,
"g": 66,
"b": 187
},
"hsl": {
"h": 282.645,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.54498,
"c": 0.19159,
"h": 314.7
},
"luminance": 0.1416
}Semantic roles & 50–950 ramp
primary
#9842BB
secondary
#A1C891
accent
#D75077
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120A14
muted
#817C82