#B796FC#B796FC
#B796FC is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.3% C 0.147 H 297.6°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #B796FC |
|---|---|
| RGB | rgb(183, 150, 252) |
| HSL | hsl(259, 94%, 79%) |
| HSV | hsv(259, 40%, 99%) |
| CMYK | cmyk(27.4%, 40.5%, 0%, 1.2%) |
| CIE-LAB | lab(68.68, 33.16, -46.47) |
| CIE-LCH | lch(68.68, 57.09, 305.51°) |
| OKLab | oklab(74.33% 0.068 -0.1298) |
| OKLCH | oklch(74.33% 0.147 297.6) |
| XYZ | xyz(48.0013, 38.9078, 97.0576) |
| Luminance | 0.3891 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.67
Pastel Purple
#CAA0FF
ΔE00 4.16
Baby Purple
#CA9BF7
ΔE00 4.55
Lilac (survey)
#CEA2FD
ΔE00 5.25
Lavender (survey)
#C79FEF
ΔE00 5.54
Lavender
#B39DDB
ΔE00 7.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B796FC #DBFC96
analogous
#96A8FC #B796FC #EA96FC
triadic
#B796FC #FCB796 #96FCB7
tetradic
#B796FC #FC96A8 #DBFC96 #96FCEA
square
#B796FC #FC96A8 #DBFC96 #96FCEA
split-complementary
#B796FC #FCEA96 #A8FC96
monochromatic
#651FF9 #8E5BFA #B796FC #E0D2FE #EBE1FE
Accessibility & contrast
On white
2.39
#B796FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.78
#B796FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B796FC
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B796FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B796FC | 1.00 | 2.39 | 8.78 | 8.78 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#80A7F9
Tritanopia (blue-blind)
#A9A8BD
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b796fc; /* rgb */ color: rgb(183, 150, 252); /* oklch */ color: oklch(74.3% 0.147 297.6);
Tailwind
colors: {
custom: {
50: '#ceb5fe',
500: '#b796fc',
950: '#000000',
},
}SCSS
$custom: #b796fc; $custom-light: #ceb5fe; $custom-dark: #000000;
JSON
{
"hex": "#b796fc",
"rgb": {
"r": 183,
"g": 150,
"b": 252
},
"hsl": {
"h": 259.412,
"s": 94.444,
"l": 78.824
},
"oklch": {
"l": 0.74328,
"c": 0.14657,
"h": 297.6
},
"luminance": 0.38908
}Semantic roles & 50–950 ramp
primary
#B796FC
secondary
#EBF6D5
accent
#E6009B
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086