#B786F5#B786F5
#B786F5 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.2% C 0.163 H 302.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).
Color values
| HEX | #B786F5 |
|---|---|
| RGB | rgb(183, 134, 245) |
| HSL | hsl(266, 85%, 74%) |
| HSV | hsv(266, 45%, 96%) |
| CMYK | cmyk(25.3%, 45.3%, 0%, 3.9%) |
| CIE-LAB | lab(64.73, 40.36, -48.87) |
| CIE-LCH | lch(64.73, 63.38, 309.55°) |
| OKLab | oklab(71.24% 0.0884 -0.1368) |
| OKLCH | oklch(71.24% 0.163 302.9) |
| XYZ | xyz(44.5314, 33.7101, 90.5292) |
| Luminance | 0.3371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.90
Light Purple
#BF77F6
ΔE00 4.01
Easter Purple
#C071FE
ΔE00 5.33
Light Urple
#B36FF6
ΔE00 5.72
Baby Purple
#CA9BF7
ΔE00 6.23
Pastel Purple
#CAA0FF
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786F5 #C4F586
analogous
#868DF5 #B786F5 #EE86F5
triadic
#B786F5 #F5B786 #86F5B7
tetradic
#B786F5 #F5868D #C4F586 #86F5EE
square
#B786F5 #F5868D #C4F586 #86F5EE
split-complementary
#B786F5 #F5EE86 #8DF586
monochromatic
#7415EC #954DF0 #B786F5 #D9BFFA #EEE3FD
Accessibility & contrast
On white
2.71
#B786F5 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.74
#B786F5 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786F5
7.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786F5 | 1.00 | 2.71 | 7.74 | 7.74 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#679CF9
Deuteranopia (green-blind)
#739DF2
Tritanopia (blue-blind)
#AC99B2
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b786f5; /* rgb */ color: rgb(183, 134, 245); /* oklch */ color: oklch(71.2% 0.163 302.9);
Tailwind
colors: {
custom: {
50: '#cfaaf9',
500: '#b786f5',
950: '#000000',
},
}SCSS
$custom: #b786f5; $custom-light: #cfaaf9; $custom-dark: #000000;
JSON
{
"hex": "#b786f5",
"rgb": {
"r": 183,
"g": 134,
"b": 245
},
"hsl": {
"h": 266.486,
"s": 84.733,
"l": 74.314
},
"oklch": {
"l": 0.71242,
"c": 0.16285,
"h": 302.9
},
"luminance": 0.3371
}Semantic roles & 50–950 ramp
primary
#B786F5
secondary
#E7F5D6
accent
#E10480
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85