#B786F2#B786F2
#B786F2 is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.1% C 0.159 H 303.5°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).
Color values
| HEX | #B786F2 |
|---|---|
| RGB | rgb(183, 134, 242) |
| HSL | hsl(267, 81%, 74%) |
| HSV | hsv(267, 45%, 95%) |
| CMYK | cmyk(24.4%, 44.6%, 0%, 5.1%) |
| CIE-LAB | lab(64.59, 39.66, -47.45) |
| CIE-LCH | lch(64.59, 61.84, 309.89°) |
| OKLab | oklab(71.09% 0.088 -0.1327) |
| OKLCH | oklch(71.09% 0.159 303.5) |
| XYZ | xyz(44.0771, 33.5284, 88.1367) |
| Luminance | 0.3353 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 2.96
Light Purple
#BF77F6
ΔE00 4.04
Easter Purple
#C071FE
ΔE00 5.47
Light Urple
#B36FF6
ΔE00 5.82
Baby Purple
#CA9BF7
ΔE00 6.09
Pastel Purple
#CAA0FF
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B786F2 #C1F286
analogous
#868BF2 #B786F2 #ED86F2
triadic
#B786F2 #F2B786 #86F2B7
tetradic
#B786F2 #F2868B #C1F286 #86F2ED
square
#B786F2 #F2868B #C1F286 #86F2ED
split-complementary
#B786F2 #F2ED86 #8BF286
monochromatic
#7519E5 #964FEC #B786F2 #D8BDF8 #EFE3FC
Accessibility & contrast
On white
2.73
#B786F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.71
#B786F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B786F2
7.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B786F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B786F2 | 1.00 | 2.73 | 7.71 | 7.71 |
| #FFFFFF | 2.73 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#699BF6
Deuteranopia (green-blind)
#759DEF
Tritanopia (blue-blind)
#AD98B1
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b786f2; /* rgb */ color: rgb(183, 134, 242); /* oklch */ color: oklch(71.1% 0.159 303.5);
Tailwind
colors: {
custom: {
50: '#cfaaf7',
500: '#b786f2',
950: '#000000',
},
}SCSS
$custom: #b786f2; $custom-light: #cfaaf7; $custom-dark: #000000;
JSON
{
"hex": "#b786f2",
"rgb": {
"r": 183,
"g": 134,
"b": 242
},
"hsl": {
"h": 267.222,
"s": 80.597,
"l": 73.725
},
"oklch": {
"l": 0.71086,
"c": 0.15917,
"h": 303.5
},
"luminance": 0.33528
}Semantic roles & 50–950 ramp
primary
#B786F2
secondary
#E7F4D7
accent
#DD097D
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85