#9840B3#9840B3
#9840B3 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.8% C 0.187 H 317.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #9840B3 |
|---|---|
| RGB | rgb(152, 64, 179) |
| HSL | hsl(286, 47%, 48%) |
| HSV | hsv(286, 64%, 70%) |
| CMYK | cmyk(15.1%, 64.2%, 0%, 29.8%) |
| CIE-LAB | lab(43.65, 54.09, -45.08) |
| CIE-LCH | lch(43.65, 70.41, 320.19°) |
| OKLab | oklab(53.76% 0.1373 -0.1262) |
| OKLCH | oklch(53.76% 0.187 317.4) |
| XYZ | xyz(22.9178, 13.5978, 44.0565) |
| Luminance | 0.1360 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.26
Medium Purple
#9E43A2
ΔE00 4.02
Darkorchid
#9932CC
ΔE00 4.48
Barney
#AC1DB8
ΔE00 4.67
Ugly Purple
#A442A0
ΔE00 5.23
Warm Purple
#952E8F
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9840B3 #5BB340
analogous
#5E40B3 #9840B3 #B34094
triadic
#9840B3 #B39840 #40B398
tetradic
#9840B3 #B35E40 #5BB340 #4094B3
square
#9840B3 #B35E40 #5BB340 #4094B3
split-complementary
#9840B3 #94B340 #40B35E
monochromatic
#4B2059 #723086 #9840B3 #B267C9 #C994D9
Accessibility & contrast
On white
5.65
#9840B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#9840B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9840B3
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9840B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9840B3 | 1.00 | 5.65 | 3.72 | 5.65 |
| #FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1962B6
Deuteranopia (green-blind)
#436AB0
Tritanopia (blue-blind)
#975474
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9840b3; /* rgb */ color: rgb(152, 64, 179); /* oklch */ color: oklch(53.8% 0.187 317.4);
Tailwind
colors: {
custom: {
50: '#b97bca',
500: '#9840b3',
950: '#000000',
},
}SCSS
$custom: #9840b3; $custom-light: #b97bca; $custom-dark: #000000;
JSON
{
"hex": "#9840b3",
"rgb": {
"r": 152,
"g": 64,
"b": 179
},
"hsl": {
"h": 285.913,
"s": 47.325,
"l": 47.647
},
"oklch": {
"l": 0.53758,
"c": 0.18651,
"h": 317.4
},
"luminance": 0.13597
}Semantic roles & 50–950 ramp
primary
#9840B3
secondary
#98C48A
accent
#D75170
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82