#B786F9#B786F9
#B786F9 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.5% C 0.168 H 302.0°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #B786F9 |
|---|---|
| RGB | rgb(183, 134, 249) |
| HSL | hsl(266, 91%, 75%) |
| HSV | hsv(266, 46%, 98%) |
| CMYK | cmyk(26.5%, 46.2%, 0%, 2.4%) |
| CIE-LAB | lab(64.93, 41.30, -50.76) |
| CIE-LCH | lch(64.93, 65.43, 309.13°) |
| OKLab | oklab(71.45% 0.0889 -0.1423) |
| OKLCH | oklch(71.45% 0.168 302) |
| XYZ | xyz(45.1486, 33.9570, 93.7800) |
| Luminance | 0.3396 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.94
Light Purple
#BF77F6
ΔE00 4.07
Easter Purple
#C071FE
ΔE00 5.22
Light Urple
#B36FF6
ΔE00 5.66
Baby Purple
#CA9BF7
ΔE00 6.46
Pastel Purple
#CAA0FF
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786F9 #C8F986
analogous
#868FF9 #B786F9 #F086F9
triadic
#B786F9 #F9B786 #86F9B7
tetradic
#B786F9 #F9868F #C8F986 #86F9F0
square
#B786F9 #F9868F #C8F986 #86F9F0
split-complementary
#B786F9 #F9F086 #8FF986
monochromatic
#7211F3 #944CF6 #B786F9 #DAC0FC #EEE2FE
Accessibility & contrast
On white
2.70
#B786F9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.79
#B786F9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786F9
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786F9 | 1.00 | 2.70 | 7.79 | 7.79 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#659DFD
Deuteranopia (green-blind)
#709DF6
Tritanopia (blue-blind)
#AB9AB4
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #b786f9; /* rgb */ color: rgb(183, 134, 249); /* oklch */ color: oklch(71.5% 0.168 302.0);
Tailwind
colors: {
custom: {
50: '#cfaafc',
500: '#b786f9',
950: '#000000',
},
}SCSS
$custom: #b786f9; $custom-light: #cfaafc; $custom-dark: #000000;
JSON
{
"hex": "#b786f9",
"rgb": {
"r": 183,
"g": 134,
"b": 249
},
"hsl": {
"h": 265.565,
"s": 90.551,
"l": 75.098
},
"oklch": {
"l": 0.71454,
"c": 0.16776,
"h": 302
},
"luminance": 0.33957
}Semantic roles & 50–950 ramp
primary
#B786F9
secondary
#E8F6D5
accent
#E60084
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85