#B97EF2#B97EF2
#B97EF2 is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.0% C 0.172 H 305.9°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #B97EF2 |
|---|---|
| RGB | rgb(185, 126, 242) |
| HSL | hsl(271, 82%, 72%) |
| HSV | hsv(271, 48%, 95%) |
| CMYK | cmyk(23.6%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(63.05, 44.56, -49.86) |
| CIE-LCH | lch(63.05, 66.88, 311.79°) |
| OKLab | oklab(69.98% 0.1011 -0.1396) |
| OKLCH | oklch(69.98% 0.172 305.9) |
| XYZ | xyz(43.4921, 31.6471, 87.8045) |
| Luminance | 0.3165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.01
Easter Purple
#C071FE
ΔE00 3.52
Light Urple
#B36FF6
ΔE00 3.95
Liliac
#C48EFD
ΔE00 4.29
Bright Lavender
#C760FF
ΔE00 6.63
Bright Lilac
#C95EFB
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B97EF2 #B7F27E
analogous
#7F7EF2 #B97EF2 #F27EF1
triadic
#B97EF2 #F2B97E #7EF2B9
tetradic
#B97EF2 #F27F7E #B7F27E #7EF1F2
square
#B97EF2 #F27F7E #B7F27E #7EF1F2
split-complementary
#B97EF2 #F1F27E #7EF27F
monochromatic
#7D16DF #9B46EC #B97EF2 #D7B6F8 #F0E3FC
Accessibility & contrast
On white
2.87
#B97EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.33
#B97EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B97EF2
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B97EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B97EF2 | 1.00 | 2.87 | 7.33 | 7.33 |
| #FFFFFF | 2.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E97F6
Deuteranopia (green-blind)
#6E99EF
Tritanopia (blue-blind)
#B092AD
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #b97ef2; /* rgb */ color: rgb(185, 126, 242); /* oklch */ color: oklch(70.0% 0.172 305.9);
Tailwind
colors: {
custom: {
50: '#d0a5f7',
500: '#b97ef2',
950: '#000000',
},
}SCSS
$custom: #b97ef2; $custom-light: #d0a5f7; $custom-dark: #000000;
JSON
{
"hex": "#b97ef2",
"rgb": {
"r": 185,
"g": 126,
"b": 242
},
"hsl": {
"h": 270.517,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.69984,
"c": 0.17237,
"h": 305.9
},
"luminance": 0.31647
}Semantic roles & 50–950 ramp
primary
#B97EF2
secondary
#E5F4D7
accent
#DE0771
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85