#B987FA#B987FA
#B987FA is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.9% C 0.168 H 302.5°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).
Color values
| HEX | #B987FA |
|---|---|
| RGB | rgb(185, 135, 250) |
| HSL | hsl(266, 92%, 75%) |
| HSV | hsv(266, 46%, 98%) |
| CMYK | cmyk(26%, 46%, 0%, 2%) |
| CIE-LAB | lab(65.39, 41.52, -50.56) |
| CIE-LCH | lch(65.39, 65.42, 309.39°) |
| OKLab | oklab(71.86% 0.0901 -0.1416) |
| OKLCH | oklch(71.86% 0.168 302.5) |
| XYZ | xyz(45.9231, 34.5443, 94.6723) |
| Luminance | 0.3454 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.53
Light Purple
#BF77F6
ΔE00 4.15
Easter Purple
#C071FE
ΔE00 5.33
Light Urple
#B36FF6
ΔE00 5.93
Baby Purple
#CA9BF7
ΔE00 6.11
Pastel Purple
#CAA0FF
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B987FA #C8FA87
analogous
#878EFA #B987FA #F287FA
triadic
#B987FA #FAB987 #87FAB9
tetradic
#B987FA #FA878E #C8FA87 #87FAF2
square
#B987FA #FA878E #C8FA87 #87FAF2
split-complementary
#B987FA #FAF287 #8EFA87
monochromatic
#7411F5 #974CF8 #B987FA #DBC2FC #EEE2FE
Accessibility & contrast
On white
2.66
#B987FA on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.91
#B987FA on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B987FA
7.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B987FA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B987FA | 1.00 | 2.66 | 7.91 | 7.91 |
| #FFFFFF | 2.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#669EFE
Deuteranopia (green-blind)
#729EF7
Tritanopia (blue-blind)
#AD9BB5
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #b987fa; /* rgb */ color: rgb(185, 135, 250); /* oklch */ color: oklch(71.9% 0.168 302.5);
Tailwind
colors: {
custom: {
50: '#d0abfc',
500: '#b987fa',
950: '#000000',
},
}SCSS
$custom: #b987fa; $custom-light: #d0abfc; $custom-dark: #000000;
JSON
{
"hex": "#b987fa",
"rgb": {
"r": 185,
"g": 135,
"b": 250
},
"hsl": {
"h": 266.087,
"s": 92,
"l": 75.49
},
"oklch": {
"l": 0.71862,
"c": 0.16786,
"h": 302.5
},
"luminance": 0.34544
}Semantic roles & 50–950 ramp
primary
#B987FA
secondary
#E8F6D5
accent
#E60082
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85