#B786FC#B786FC
#B786FC is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.6% C 0.171 H 301.4°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #B786FC |
|---|---|
| RGB | rgb(183, 134, 252) |
| HSL | hsl(265, 95%, 76%) |
| HSV | hsv(265, 47%, 99%) |
| CMYK | cmyk(27.4%, 46.8%, 0%, 1.2%) |
| CIE-LAB | lab(65.08, 42.01, -52.16) |
| CIE-LCH | lch(65.08, 66.98, 308.84°) |
| OKLab | oklab(71.61% 0.0893 -0.1464) |
| OKLCH | oklch(71.61% 0.171 301.4) |
| XYZ | xyz(45.6202, 34.1456, 96.2639) |
| Luminance | 0.3415 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.06
Light Purple
#BF77F6
ΔE00 4.18
Easter Purple
#C071FE
ΔE00 5.19
Light Urple
#B36FF6
ΔE00 5.66
Baby Purple
#CA9BF7
ΔE00 6.66
Pastel Purple
#CAA0FF
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786FC #CBFC86
analogous
#8690FC #B786FC #F286FC
triadic
#B786FC #FCB786 #86FCB7
tetradic
#B786FC #FC8690 #CBFC86 #86FCF2
square
#B786FC #FC8690 #CBFC86 #86FCF2
split-complementary
#B786FC #FCF286 #90FC86
monochromatic
#700FF9 #934AFB #B786FC #DBC2FD #EDE1FE
Accessibility & contrast
On white
2.68
#B786FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.83
#B786FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786FC
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786FC | 1.00 | 2.68 | 7.83 | 7.83 |
| #FFFFFF | 2.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6E9DF9
Tritanopia (blue-blind)
#AA9BB5
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #b786fc; /* rgb */ color: rgb(183, 134, 252); /* oklch */ color: oklch(71.6% 0.171 301.4);
Tailwind
colors: {
custom: {
50: '#cfaafe',
500: '#b786fc',
950: '#000000',
},
}SCSS
$custom: #b786fc; $custom-light: #cfaafe; $custom-dark: #000000;
JSON
{
"hex": "#b786fc",
"rgb": {
"r": 183,
"g": 134,
"b": 252
},
"hsl": {
"h": 264.915,
"s": 95.161,
"l": 75.686
},
"oklch": {
"l": 0.71614,
"c": 0.17145,
"h": 301.4
},
"luminance": 0.34146
}Semantic roles & 50–950 ramp
primary
#B786FC
secondary
#E8F6D5
accent
#E60086
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86