#B786F8#B786F8
#B786F8 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.4% C 0.167 H 302.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).
Color values
| HEX | #B786F8 |
|---|---|
| RGB | rgb(183, 134, 248) |
| HSL | hsl(266, 89%, 75%) |
| HSV | hsv(266, 46%, 97%) |
| CMYK | cmyk(26.2%, 46%, 0%, 2.7%) |
| CIE-LAB | lab(64.88, 41.06, -50.29) |
| CIE-LCH | lch(64.88, 64.92, 309.23°) |
| OKLab | oklab(71.4% 0.0888 -0.1409) |
| OKLCH | oklch(71.4% 0.167 302.2) |
| XYZ | xyz(44.9930, 33.8948, 92.9607) |
| Luminance | 0.3389 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.92
Light Purple
#BF77F6
ΔE00 4.04
Easter Purple
#C071FE
ΔE00 5.24
Light Urple
#B36FF6
ΔE00 5.67
Baby Purple
#CA9BF7
ΔE00 6.40
Pastel Purple
#CAA0FF
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786F8 #C7F886
analogous
#868EF8 #B786F8 #F086F8
triadic
#B786F8 #F8B786 #86F8B7
tetradic
#B786F8 #F8868E #C7F886 #86F8F0
square
#B786F8 #F8868E #C7F886 #86F8F0
split-complementary
#B786F8 #F8F086 #8EF886
monochromatic
#7212F1 #954CF5 #B786F8 #D9C0FB #EEE2FD
Accessibility & contrast
On white
2.70
#B786F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.78
#B786F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786F8
7.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786F8 | 1.00 | 2.70 | 7.78 | 7.78 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#659CFC
Deuteranopia (green-blind)
#719DF5
Tritanopia (blue-blind)
#AB9AB3
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b786f8; /* rgb */ color: rgb(183, 134, 248); /* oklch */ color: oklch(71.4% 0.167 302.2);
Tailwind
colors: {
custom: {
50: '#cfaafb',
500: '#b786f8',
950: '#000000',
},
}SCSS
$custom: #b786f8; $custom-light: #cfaafb; $custom-dark: #000000;
JSON
{
"hex": "#b786f8",
"rgb": {
"r": 183,
"g": 134,
"b": 248
},
"hsl": {
"h": 265.789,
"s": 89.063,
"l": 74.902
},
"oklch": {
"l": 0.71401,
"c": 0.16654,
"h": 302.2
},
"luminance": 0.33895
}Semantic roles & 50–950 ramp
primary
#B786F8
secondary
#E8F5D6
accent
#E60083
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85