#B786F3#B786F3
#B786F3 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.1% C 0.160 H 303.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).
Color values
| HEX | #B786F3 |
|---|---|
| RGB | rgb(183, 134, 243) |
| HSL | hsl(267, 82%, 74%) |
| HSV | hsv(267, 45%, 95%) |
| CMYK | cmyk(24.7%, 44.9%, 0%, 4.7%) |
| CIE-LAB | lab(64.63, 39.89, -47.92) |
| CIE-LCH | lch(64.63, 62.36, 309.77°) |
| OKLab | oklab(71.14% 0.0881 -0.134) |
| OKLCH | oklch(71.14% 0.16 303.3) |
| XYZ | xyz(44.2277, 33.5886, 88.9299) |
| Luminance | 0.3359 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.93
Light Purple
#BF77F6
ΔE00 4.02
Easter Purple
#C071FE
ΔE00 5.42
Light Urple
#B36FF6
ΔE00 5.78
Baby Purple
#CA9BF7
ΔE00 6.13
Pastel Purple
#CAA0FF
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786F3 #C2F386
analogous
#868CF3 #B786F3 #ED86F3
triadic
#B786F3 #F3B786 #86F3B7
tetradic
#B786F3 #F3868C #C2F386 #86F3ED
square
#B786F3 #F3868C #C2F386 #86F3ED
split-complementary
#B786F3 #F3ED86 #8CF386
monochromatic
#7517E8 #964EED #B786F3 #D8BEF9 #EEE3FC
Accessibility & contrast
On white
2.72
#B786F3 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.72
#B786F3 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786F3
7.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786F3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786F3 | 1.00 | 2.72 | 7.72 | 7.72 |
| #FFFFFF | 2.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#689CF7
Deuteranopia (green-blind)
#749DF0
Tritanopia (blue-blind)
#AD99B1
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b786f3; /* rgb */ color: rgb(183, 134, 243); /* oklch */ color: oklch(71.1% 0.160 303.3);
Tailwind
colors: {
custom: {
50: '#cfaaf7',
500: '#b786f3',
950: '#000000',
},
}SCSS
$custom: #b786f3; $custom-light: #cfaaf7; $custom-dark: #000000;
JSON
{
"hex": "#b786f3",
"rgb": {
"r": 183,
"g": 134,
"b": 243
},
"hsl": {
"h": 266.972,
"s": 81.955,
"l": 73.922
},
"oklch": {
"l": 0.71138,
"c": 0.1604,
"h": 303.3
},
"luminance": 0.33589
}Semantic roles & 50–950 ramp
primary
#B786F3
secondary
#E7F4D7
accent
#DE077E
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85