#B796EF#B796EF
#B796EF is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.7% C 0.130 H 300.3°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #B796EF |
|---|---|
| RGB | rgb(183, 150, 239) |
| HSL | hsl(262, 74%, 76%) |
| HSV | hsv(262, 37%, 94%) |
| CMYK | cmyk(23.4%, 37.2%, 0%, 6.3%) |
| CIE-LAB | lab(68.10, 30.08, -40.28) |
| CIE-LCH | lch(68.10, 50.27, 306.75°) |
| OKLab | oklab(73.7% 0.0655 -0.1119) |
| OKLCH | oklch(73.7% 0.13 300.3) |
| XYZ | xyz(46.0113, 38.1118, 86.5769) |
| Luminance | 0.3811 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Baby Purple
#CA9BF7
ΔE00 3.67
Pastel Purple
#CAA0FF
ΔE00 3.96
Lavender (survey)
#C79FEF
ΔE00 3.99
Liliac
#C48EFD
ΔE00 4.10
Lilac (survey)
#CEA2FD
ΔE00 4.69
Lavender
#B39DDB
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B796EF #CEEF96
analogous
#96A2EF #B796EF #E496EF
triadic
#B796EF #EFB796 #96EFB7
tetradic
#B796EF #EF96A2 #CEEF96 #96EFE4
square
#B796EF #EF96A2 #CEEF96 #96EFE4
split-complementary
#B796EF #EFE496 #A2EF96
monochromatic
#6E2CDF #9361E7 #B796EF #DBCBF7 #EDE4FB
Accessibility & contrast
On white
2.44
#B796EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.62
#B796EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B796EF
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B796EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B796EF | 1.00 | 2.44 | 8.62 | 8.62 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#80A6F2
Deuteranopia (green-blind)
#86A5ED
Tritanopia (blue-blind)
#ADA5B7
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #b796ef; /* rgb */ color: rgb(183, 150, 239); /* oklch */ color: oklch(73.7% 0.130 300.3);
Tailwind
colors: {
custom: {
50: '#ceb5f4',
500: '#b796ef',
950: '#000000',
},
}SCSS
$custom: #b796ef; $custom-light: #ceb5f4; $custom-dark: #000000;
JSON
{
"hex": "#b796ef",
"rgb": {
"r": 183,
"g": 150,
"b": 239
},
"hsl": {
"h": 262.247,
"s": 73.554,
"l": 76.275
},
"oklch": {
"l": 0.73697,
"c": 0.12969,
"h": 300.3
},
"luminance": 0.38112
}Semantic roles & 50–950 ramp
primary
#B796EF
secondary
#E9F3D8
accent
#D6108C
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085