#B787F3#B787F3
#B787F3 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.3% C 0.159 H 303.1°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #B787F3 |
|---|---|
| RGB | rgb(183, 135, 243) |
| HSL | hsl(267, 82%, 74%) |
| HSV | hsv(267, 44%, 95%) |
| CMYK | cmyk(24.7%, 44.4%, 0%, 4.7%) |
| CIE-LAB | lab(64.86, 39.34, -47.58) |
| CIE-LCH | lch(64.86, 61.73, 309.59°) |
| OKLab | oklab(71.3% 0.0867 -0.133) |
| OKLCH | oklch(71.3% 0.159 303.1) |
| XYZ | xyz(44.3666, 33.8663, 88.9762) |
| Luminance | 0.3387 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.80
Light Purple
#BF77F6
ΔE00 4.27
Easter Purple
#C071FE
ΔE00 5.66
Baby Purple
#CA9BF7
ΔE00 5.92
Light Urple
#B36FF6
ΔE00 6.04
Pastel Purple
#CAA0FF
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B787F3 #C3F387
analogous
#878DF3 #B787F3 #ED87F3
triadic
#B787F3 #F3B787 #87F3B7
tetradic
#B787F3 #F3878D #C3F387 #87F3ED
square
#B787F3 #F3878D #C3F387 #87F3ED
split-complementary
#B787F3 #F3ED87 #8DF387
monochromatic
#7418E8 #964FED #B787F3 #D8BFF9 #EEE3FC
Accessibility & contrast
On white
2.70
#B787F3 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.77
#B787F3 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B787F3
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B787F3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B787F3 | 1.00 | 2.70 | 7.77 | 7.77 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6A9CF7
Deuteranopia (green-blind)
#759DF0
Tritanopia (blue-blind)
#AD99B1
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b787f3; /* rgb */ color: rgb(183, 135, 243); /* oklch */ color: oklch(71.3% 0.159 303.1);
Tailwind
colors: {
custom: {
50: '#cfabf7',
500: '#b787f3',
950: '#000000',
},
}SCSS
$custom: #b787f3; $custom-light: #cfabf7; $custom-dark: #000000;
JSON
{
"hex": "#b787f3",
"rgb": {
"r": 183,
"g": 135,
"b": 243
},
"hsl": {
"h": 266.667,
"s": 81.818,
"l": 74.118
},
"oklch": {
"l": 0.71304,
"c": 0.1588,
"h": 303.1
},
"luminance": 0.33866
}Semantic roles & 50–950 ramp
primary
#B787F3
secondary
#E7F4D7
accent
#DE077F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85