#B396F2#B396F2
#B396F2 is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.5% C 0.133 H 297.5°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #B396F2 |
|---|---|
| RGB | rgb(179, 150, 242) |
| HSL | hsl(259, 78%, 77%) |
| HSV | hsv(259, 38%, 95%) |
| CMYK | cmyk(26%, 38%, 0%, 5.1%) |
| CIE-LAB | lab(67.88, 29.65, -42.30) |
| CIE-LCH | lch(67.88, 51.66, 305.03°) |
| OKLab | oklab(73.48% 0.0615 -0.1179) |
| OKLCH | oklch(73.48% 0.133 297.5) |
| XYZ | xyz(45.5200, 37.8068, 88.8864) |
| Luminance | 0.3781 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.49
Pastel Purple
#CAA0FF
ΔE00 4.54
Baby Purple
#CA9BF7
ΔE00 4.63
Lavender (survey)
#C79FEF
ΔE00 5.03
Lilac (survey)
#CEA2FD
ΔE00 5.43
Lavender
#B39DDB
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B396F2 #D5F296
analogous
#96A7F2 #B396F2 #E196F2
triadic
#B396F2 #F2B396 #96F2B3
tetradic
#B396F2 #F296A7 #D5F296 #96F2E1
square
#B396F2 #F296A7 #D5F296 #96F2E1
split-complementary
#B396F2 #F2E196 #A7F296
monochromatic
#6429E5 #8C60EB #B396F2 #DACCF9 #EBE4FC
Accessibility & contrast
On white
2.45
#B396F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.56
#B396F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B396F2
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B396F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B396F2 | 1.00 | 2.45 | 8.56 | 8.56 |
| #FFFFFF | 2.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7EA6F6
Deuteranopia (green-blind)
#83A4F0
Tritanopia (blue-blind)
#A6A6B9
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #b396f2; /* rgb */ color: rgb(179, 150, 242); /* oklch */ color: oklch(73.5% 0.133 297.5);
Tailwind
colors: {
custom: {
50: '#cbb5f6',
500: '#b396f2',
950: '#000000',
},
}SCSS
$custom: #b396f2; $custom-light: #cbb5f6; $custom-dark: #000000;
JSON
{
"hex": "#b396f2",
"rgb": {
"r": 179,
"g": 150,
"b": 242
},
"hsl": {
"h": 258.913,
"s": 77.966,
"l": 76.863
},
"oklch": {
"l": 0.73484,
"c": 0.13293,
"h": 297.5
},
"luminance": 0.37807
}Semantic roles & 50–950 ramp
primary
#B396F2
secondary
#EBF3D8
accent
#DA0B99
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#131117
muted
#828085