#B396FE#B396FE
#B396FE is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.1% C 0.149 H 295.4°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #B396FE |
|---|---|
| RGB | rgb(179, 150, 254) |
| HSL | hsl(257, 98%, 79%) |
| HSV | hsv(257, 41%, 100%) |
| CMYK | cmyk(29.5%, 40.9%, 0%, 0.4%) |
| CIE-LAB | lab(68.43, 32.55, -47.99) |
| CIE-LCH | lch(68.43, 57.99, 304.15°) |
| OKLab | oklab(74.08% 0.0637 -0.1344) |
| OKLCH | oklch(74.08% 0.149 295.4) |
| XYZ | xyz(47.3818, 38.5515, 98.6916) |
| Luminance | 0.3855 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.49
Pastel Purple
#CAA0FF
ΔE00 5.01
Baby Purple
#CA9BF7
ΔE00 5.54
Lilac (survey)
#CEA2FD
ΔE00 6.11
Lavender (survey)
#C79FEF
ΔE00 6.44
Perrywinkle
#8F8CE7
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B396FE #E1FE96
analogous
#96ADFE #B396FE #E796FE
triadic
#B396FE #FEB396 #96FEB3
tetradic
#B396FE #FE96AD #E1FE96 #96FEE7
square
#B396FE #FE96AD #E1FE96 #96FEE7
split-complementary
#B396FE #FEE796 #ADFE96
monochromatic
#5B1DFD #8759FD #B396FE #DFD3FF #E9E1FF
Accessibility & contrast
On white
2.41
#B396FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.71
#B396FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B396FE
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B396FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B396FE | 1.00 | 2.41 | 8.71 | 8.71 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#78A8FF
Deuteranopia (green-blind)
#7CA5FB
Tritanopia (blue-blind)
#A3A9BE
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b396fe; /* rgb */ color: rgb(179, 150, 254); /* oklch */ color: oklch(74.1% 0.149 295.4);
Tailwind
colors: {
custom: {
50: '#ccb5ff',
500: '#b396fe',
950: '#000000',
},
}SCSS
$custom: #b396fe; $custom-light: #ccb5ff; $custom-dark: #000000;
JSON
{
"hex": "#b396fe",
"rgb": {
"r": 179,
"g": 150,
"b": 254
},
"hsl": {
"h": 256.731,
"s": 98.113,
"l": 79.216
},
"oklch": {
"l": 0.74078,
"c": 0.1487,
"h": 295.4
},
"luminance": 0.38552
}Semantic roles & 50–950 ramp
primary
#B396FE
secondary
#EDF7D4
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086