#B797FE#B797FE
#B797FE is a light, vivid violet. Relative luminance 0.394; OKLCH L 74.6% C 0.148 H 297.0°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B797FE |
|---|---|
| RGB | rgb(183, 151, 254) |
| HSL | hsl(259, 98%, 79%) |
| HSV | hsv(259, 41%, 100%) |
| CMYK | cmyk(28%, 40.6%, 0%, 0.4%) |
| CIE-LAB | lab(69.01, 33.08, -47.05) |
| CIE-LCH | lch(69.01, 57.52, 305.11°) |
| OKLab | oklab(74.6% 0.067 -0.1315) |
| OKLCH | oklch(74.6% 0.148 297) |
| XYZ | xyz(48.4802, 39.3557, 98.7890) |
| Luminance | 0.3936 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.93
Pastel Purple
#CAA0FF
ΔE00 4.19
Baby Purple
#CA9BF7
ΔE00 4.73
Lilac (survey)
#CEA2FD
ΔE00 5.30
Lavender (survey)
#C79FEF
ΔE00 5.71
Lavender
#B39DDB
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B797FE #DEFE97
analogous
#97ABFE #B797FE #EB97FE
triadic
#B797FE #FEB797 #97FEB7
tetradic
#B797FE #FE97AB #DEFE97 #97FEEB
square
#B797FE #FE97AB #DEFE97 #97FEEB
split-complementary
#B797FE #FEEB97 #ABFE97
monochromatic
#631EFD #8D5AFD #B797FE #E1D4FF #EAE1FF
Accessibility & contrast
On white
2.37
#B797FE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.87
#B797FE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B797FE
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B797FE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B797FE | 1.00 | 2.37 | 8.87 | 8.87 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA9FF
Deuteranopia (green-blind)
#80A7FB
Tritanopia (blue-blind)
#A8A9BE
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b797fe; /* rgb */ color: rgb(183, 151, 254); /* oklch */ color: oklch(74.6% 0.148 297.0);
Tailwind
colors: {
custom: {
50: '#cfb6ff',
500: '#b797fe',
950: '#000000',
},
}SCSS
$custom: #b797fe; $custom-light: #cfb6ff; $custom-dark: #000000;
JSON
{
"hex": "#b797fe",
"rgb": {
"r": 183,
"g": 151,
"b": 254
},
"hsl": {
"h": 258.641,
"s": 98.095,
"l": 79.412
},
"oklch": {
"l": 0.74604,
"c": 0.14762,
"h": 297
},
"luminance": 0.39356
}Semantic roles & 50–950 ramp
primary
#B797FE
secondary
#ECF7D4
accent
#E6009E
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141118
muted
#828086