#B397FC#B397FC
#B397FC is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.2% C 0.145 H 295.4°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #B397FC |
|---|---|
| RGB | rgb(179, 151, 252) |
| HSL | hsl(257, 94%, 79%) |
| HSV | hsv(257, 40%, 99%) |
| CMYK | cmyk(29%, 40.1%, 0%, 1.2%) |
| CIE-LAB | lab(68.57, 31.51, -46.68) |
| CIE-LCH | lch(68.57, 56.32, 304.01°) |
| OKLab | oklab(74.16% 0.062 -0.1305) |
| OKLCH | oklch(74.16% 0.145 295.4) |
| XYZ | xyz(47.2234, 38.7446, 97.0671) |
| Luminance | 0.3875 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 4.62
Pastel Purple
#CAA0FF
ΔE00 4.81
Baby Purple
#CA9BF7
ΔE00 5.35
Lilac (survey)
#CEA2FD
ΔE00 5.89
Lavender (survey)
#C79FEF
ΔE00 6.12
Lavender
#B39DDB
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B397FC #E0FC97
analogous
#97AEFC #B397FC #E697FC
triadic
#B397FC #FCB397 #97FCB3
tetradic
#B397FC #FC97AE #E0FC97 #97FCE6
square
#B397FC #FC97AE #E0FC97 #97FCE6
split-complementary
#B397FC #FCE697 #AEFC97
monochromatic
#5C20F9 #885CFA #B397FC #DED2FE #E9E1FE
Accessibility & contrast
On white
2.40
#B397FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.75
#B397FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B397FC
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B397FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B397FC | 1.00 | 2.40 | 8.75 | 8.75 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA8FF
Deuteranopia (green-blind)
#7EA6F9
Tritanopia (blue-blind)
#A3A9BE
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b397fc; /* rgb */ color: rgb(179, 151, 252); /* oklch */ color: oklch(74.2% 0.145 295.4);
Tailwind
colors: {
custom: {
50: '#ccb6fe',
500: '#b397fc',
950: '#000000',
},
}SCSS
$custom: #b397fc; $custom-light: #ccb6fe; $custom-dark: #000000;
JSON
{
"hex": "#b397fc",
"rgb": {
"r": 179,
"g": 151,
"b": 252
},
"hsl": {
"h": 256.634,
"s": 94.393,
"l": 79.02
},
"oklch": {
"l": 0.74155,
"c": 0.14454,
"h": 295.4
},
"luminance": 0.38745
}Semantic roles & 50–950 ramp
primary
#B397FC
secondary
#EDF6D5
accent
#E600A6
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086