#B796FE#B796FE
#B796FE is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.4% C 0.149 H 297.3°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #B796FE |
|---|---|
| RGB | rgb(183, 150, 254) |
| HSL | hsl(259, 98%, 79%) |
| HSV | hsv(259, 41%, 100%) |
| CMYK | cmyk(28%, 40.9%, 0%, 0.4%) |
| CIE-LAB | lab(68.78, 33.64, -47.42) |
| CIE-LCH | lch(68.78, 58.14, 305.35°) |
| OKLab | oklab(74.43% 0.0683 -0.1326) |
| OKLCH | oklch(74.43% 0.149 297.3) |
| XYZ | xyz(48.3199, 39.0352, 98.7356) |
| Luminance | 0.3904 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.73
Pastel Purple
#CAA0FF
ΔE00 4.29
Baby Purple
#CA9BF7
ΔE00 4.75
Lilac (survey)
#CEA2FD
ΔE00 5.40
Lavender (survey)
#C79FEF
ΔE00 5.80
Lavender
#B39DDB
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B796FE #DDFE96
analogous
#96A9FE #B796FE #EB96FE
triadic
#B796FE #FEB796 #96FEB7
tetradic
#B796FE #FE96A9 #DDFE96 #96FEEB
square
#B796FE #FE96A9 #DDFE96 #96FEEB
split-complementary
#B796FE #FEEB96 #A9FE96
monochromatic
#641DFD #8D59FD #B796FE #E1D3FF #EAE1FF
Accessibility & contrast
On white
2.38
#B796FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.81
#B796FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B796FE
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B796FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B796FE | 1.00 | 2.38 | 8.81 | 8.81 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#7FA7FB
Tritanopia (blue-blind)
#A8A8BE
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b796fe; /* rgb */ color: rgb(183, 150, 254); /* oklch */ color: oklch(74.4% 0.149 297.3);
Tailwind
colors: {
custom: {
50: '#cfb5ff',
500: '#b796fe',
950: '#000000',
},
}SCSS
$custom: #b796fe; $custom-light: #cfb5ff; $custom-dark: #000000;
JSON
{
"hex": "#b796fe",
"rgb": {
"r": 183,
"g": 150,
"b": 254
},
"hsl": {
"h": 259.038,
"s": 98.113,
"l": 79.216
},
"oklch": {
"l": 0.74428,
"c": 0.14916,
"h": 297.3
},
"luminance": 0.39036
}Semantic roles & 50–950 ramp
primary
#B796FE
secondary
#ECF7D4
accent
#E6009D
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086