#B786F7#B786F7
#B786F7 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.3% C 0.165 H 302.4°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #B786F7 |
|---|---|
| RGB | rgb(183, 134, 247) |
| HSL | hsl(266, 88%, 75%) |
| HSV | hsv(266, 46%, 97%) |
| CMYK | cmyk(25.9%, 45.7%, 0%, 3.1%) |
| CIE-LAB | lab(64.83, 40.83, -49.82) |
| CIE-LCH | lch(64.83, 64.41, 309.34°) |
| OKLab | oklab(71.35% 0.0886 -0.1395) |
| OKLCH | oklch(71.35% 0.165 302.4) |
| XYZ | xyz(44.8383, 33.8329, 92.1458) |
| Luminance | 0.3383 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.90
Light Purple
#BF77F6
ΔE00 4.03
Easter Purple
#C071FE
ΔE00 5.26
Light Urple
#B36FF6
ΔE00 5.68
Baby Purple
#CA9BF7
ΔE00 6.34
Pastel Purple
#CAA0FF
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786F7 #C6F786
analogous
#868DF7 #B786F7 #F086F7
triadic
#B786F7 #F7B786 #86F7B7
tetradic
#B786F7 #F7868D #C6F786 #86F7F0
square
#B786F7 #F7868D #C6F786 #86F7F0
split-complementary
#B786F7 #F7F086 #8DF786
monochromatic
#7313EF #954DF3 #B786F7 #D9BFFB #EEE2FD
Accessibility & contrast
On white
2.70
#B786F7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.77
#B786F7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786F7
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786F7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786F7 | 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)
#669CFB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#AC9AB3
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b786f7; /* rgb */ color: rgb(183, 134, 247); /* oklch */ color: oklch(71.3% 0.165 302.4);
Tailwind
colors: {
custom: {
50: '#cfaafa',
500: '#b786f7',
950: '#000000',
},
}SCSS
$custom: #b786f7; $custom-light: #cfaafa; $custom-dark: #000000;
JSON
{
"hex": "#b786f7",
"rgb": {
"r": 183,
"g": 134,
"b": 247
},
"hsl": {
"h": 266.018,
"s": 87.597,
"l": 74.706
},
"oklch": {
"l": 0.71348,
"c": 0.16531,
"h": 302.4
},
"luminance": 0.33833
}Semantic roles & 50–950 ramp
primary
#B786F7
secondary
#E8F5D6
accent
#E40182
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85