#B397F9#B397F9
#B397F9 is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.0% C 0.141 H 295.9°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #B397F9 |
|---|---|
| RGB | rgb(179, 151, 249) |
| HSL | hsl(257, 89%, 78%) |
| HSV | hsv(257, 39%, 98%) |
| CMYK | cmyk(28.1%, 39.4%, 0%, 2.4%) |
| CIE-LAB | lab(68.43, 30.78, -45.26) |
| CIE-LCH | lch(68.43, 54.74, 304.21°) |
| OKLab | oklab(74.01% 0.0615 -0.1264) |
| OKLCH | oklch(74.01% 0.141 295.9) |
| XYZ | xyz(46.7518, 38.5559, 94.5831) |
| Luminance | 0.3856 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.58
Pastel Purple
#CAA0FF
ΔE00 4.65
Baby Purple
#CA9BF7
ΔE00 5.09
Lilac (survey)
#CEA2FD
ΔE00 5.69
Lavender (survey)
#C79FEF
ΔE00 5.75
Lavender
#B39DDB
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B397F9 #DDF997
analogous
#97ACF9 #B397F9 #E497F9
triadic
#B397F9 #F9B397 #97F9B3
tetradic
#B397F9 #F997AC #DDF997 #97F9E4
square
#B397F9 #F997AC #DDF997 #97F9E4
split-complementary
#B397F9 #F9E497 #ACF997
monochromatic
#5E23F2 #895DF6 #B397F9 #DDD1FC #EAE2FD
Accessibility & contrast
On white
2.41
#B397F9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.71
#B397F9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B397F9
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B397F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B397F9 | 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)
#7CA7FD
Deuteranopia (green-blind)
#80A6F6
Tritanopia (blue-blind)
#A4A8BC
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b397f9; /* rgb */ color: rgb(179, 151, 249); /* oklch */ color: oklch(74.0% 0.141 295.9);
Tailwind
colors: {
custom: {
50: '#ccb6fb',
500: '#b397f9',
950: '#000000',
},
}SCSS
$custom: #b397f9; $custom-light: #ccb6fb; $custom-dark: #000000;
JSON
{
"hex": "#b397f9",
"rgb": {
"r": 179,
"g": 151,
"b": 249
},
"hsl": {
"h": 257.143,
"s": 89.091,
"l": 78.431
},
"oklch": {
"l": 0.74005,
"c": 0.1406,
"h": 295.9
},
"luminance": 0.38556
}Semantic roles & 50–950 ramp
primary
#B397F9
secondary
#ECF5D6
accent
#E600A4
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131117
muted
#828085