#B397F2#B397F2
#B397F2 is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.7% C 0.131 H 297.2°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).
Color values
| HEX | #B397F2 |
|---|---|
| RGB | rgb(179, 151, 242) |
| HSL | hsl(258, 78%, 77%) |
| HSV | hsv(258, 38%, 95%) |
| CMYK | cmyk(26%, 37.6%, 0%, 5.1%) |
| CIE-LAB | lab(68.11, 29.09, -41.93) |
| CIE-LCH | lch(68.11, 51.03, 304.75°) |
| OKLab | oklab(73.66% 0.0601 -0.1168) |
| OKLCH | oklch(73.66% 0.131 297.2) |
| XYZ | xyz(45.6803, 38.1273, 88.9399) |
| Luminance | 0.3813 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pastel Purple
#CAA0FF
ΔE00 4.48
Baby Purple
#CA9BF7
ΔE00 4.64
Liliac
#C48EFD
ΔE00 4.71
Lavender (survey)
#C79FEF
ΔE00 4.95
Lilac (survey)
#CEA2FD
ΔE00 5.36
Lavender
#B39DDB
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B397F2 #D6F297
analogous
#97A8F2 #B397F2 #E197F2
triadic
#B397F2 #F2B397 #97F2B3
tetradic
#B397F2 #F297A8 #D6F297 #97F2E1
square
#B397F2 #F297A8 #D6F297 #97F2E1
split-complementary
#B397F2 #F2E197 #A8F297
monochromatic
#632AE4 #8B61EB #B397F2 #DBCDF9 #EBE4FC
Accessibility & contrast
On white
2.43
#B397F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.63
#B397F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B397F2
8.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B397F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B397F2 | 1.00 | 2.43 | 8.63 | 8.63 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7FA6F6
Deuteranopia (green-blind)
#84A5F0
Tritanopia (blue-blind)
#A6A6B9
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #b397f2; /* rgb */ color: rgb(179, 151, 242); /* oklch */ color: oklch(73.7% 0.131 297.2);
Tailwind
colors: {
custom: {
50: '#cbb6f6',
500: '#b397f2',
950: '#000000',
},
}SCSS
$custom: #b397f2; $custom-light: #cbb6f6; $custom-dark: #000000;
JSON
{
"hex": "#b397f2",
"rgb": {
"r": 179,
"g": 151,
"b": 242
},
"hsl": {
"h": 258.462,
"s": 77.778,
"l": 77.059
},
"oklch": {
"l": 0.73664,
"c": 0.13136,
"h": 297.2
},
"luminance": 0.38128
}Semantic roles & 50–950 ramp
primary
#B397F2
secondary
#EBF3D8
accent
#DA0B9A
background
#FCFBFF
surface
#F9F6FE
border
#D2D0D6
text
#131117
muted
#828085