#8840BF#8840BF
#8840BF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.193 H 307.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8840BF |
|---|---|
| RGB | rgb(136, 64, 191) |
| HSL | hsl(274, 50%, 50%) |
| HSV | hsv(274, 66%, 75%) |
| CMYK | cmyk(28.8%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(42.25, 53.04, -54.48) |
| CIE-LCH | lch(42.25, 76.04, 314.23°) |
| OKLab | oklab(52.54% 0.1161 -0.1543) |
| OKLCH | oklch(52.54% 0.193 307) |
| XYZ | xyz(21.3887, 12.6629, 50.5975) |
| Luminance | 0.1266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.45
Purply
#983FB2
ΔE00 4.38
Blueviolet
#8A2BE2
ΔE00 5.40
Royal Purple
#7851A9
ΔE00 5.95
Darkviolet
#9400D3
ΔE00 6.25
Violet (survey)
#9A0EEA
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8840BF #77BF40
analogous
#4940BF #8840BF #BF40B6
triadic
#8840BF #BF8840 #40BF88
tetradic
#8840BF #BF4940 #77BF40 #40B6BF
square
#8840BF #BF4940 #77BF40 #40B6BF
split-complementary
#8840BF #B6BF40 #40BF49
monochromatic
#472163 #673191 #8840BF #A56ECE #C19CDE
Accessibility & contrast
On white
5.94
#8840BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#8840BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8840BF
5.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8840BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8840BF | 1.00 | 5.94 | 3.53 | 5.94 |
| #FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#2264BC
Tritanopia (blue-blind)
#7F5B7A
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8840bf; /* rgb */ color: rgb(136, 64, 191); /* oklch */ color: oklch(52.5% 0.193 307.0);
Tailwind
colors: {
custom: {
50: '#af7ad3',
500: '#8840bf',
950: '#000000',
},
}SCSS
$custom: #8840bf; $custom-light: #af7ad3; $custom-dark: #000000;
JSON
{
"hex": "#8840bf",
"rgb": {
"r": 136,
"g": 64,
"b": 191
},
"hsl": {
"h": 274.016,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.52536,
"c": 0.19311,
"h": 307
},
"luminance": 0.12663
}Semantic roles & 50–950 ramp
primary
#8840BF
secondary
#AACA91
accent
#D94E8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83