#B787EF#B787EF
#B787EF is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.1% C 0.154 H 304.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).
Color values
| HEX | #B787EF |
|---|---|
| RGB | rgb(183, 135, 239) |
| HSL | hsl(268, 76%, 73%) |
| HSV | hsv(268, 44%, 94%) |
| CMYK | cmyk(23.4%, 43.5%, 0%, 6.3%) |
| CIE-LAB | lab(64.67, 38.41, -45.67) |
| CIE-LCH | lch(64.67, 59.68, 310.07°) |
| OKLab | oklab(71.1% 0.0861 -0.1275) |
| OKLCH | oklch(71.1% 0.154 304) |
| XYZ | xyz(43.7691, 33.6274, 85.8295) |
| Luminance | 0.3363 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.99
Light Purple
#BF77F6
ΔE00 4.38
Baby Purple
#CA9BF7
ΔE00 5.77
Easter Purple
#C071FE
ΔE00 5.90
Light Urple
#B36FF6
ΔE00 6.22
Pale Purple
#B790D4
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B787EF #BFEF87
analogous
#878BEF #B787EF #EB87EF
triadic
#B787EF #EFB787 #87EFB7
tetradic
#B787EF #EF878B #BFEF87 #87EFEB
square
#B787EF #EF878B #BFEF87 #87EFEB
split-complementary
#B787EF #EFEB87 #8BEF87
monochromatic
#761EDE #9751E8 #B787EF #D7BDF6 #EFE4FB
Accessibility & contrast
On white
2.72
#B787EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.73
#B787EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B787EF
7.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B787EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B787EF | 1.00 | 2.72 | 7.73 | 7.73 |
| #FFFFFF | 2.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6C9CF3
Deuteranopia (green-blind)
#779DEC
Tritanopia (blue-blind)
#AE98B0
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b787ef; /* rgb */ color: rgb(183, 135, 239); /* oklch */ color: oklch(71.1% 0.154 304.0);
Tailwind
colors: {
custom: {
50: '#ceabf4',
500: '#b787ef',
950: '#000000',
},
}SCSS
$custom: #b787ef; $custom-light: #ceabf4; $custom-dark: #000000;
JSON
{
"hex": "#b787ef",
"rgb": {
"r": 183,
"g": 135,
"b": 239
},
"hsl": {
"h": 267.692,
"s": 76.471,
"l": 73.333
},
"oklch": {
"l": 0.71099,
"c": 0.15387,
"h": 304
},
"luminance": 0.33627
}Semantic roles & 50–950 ramp
primary
#B787EF
secondary
#E7F3D8
accent
#D90D7B
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85