#B7A2E7#B7A2E7
#B7A2E7 is a light, moderate violet. Relative luminance 0.417; OKLCH L 75.5% C 0.100 H 298.0°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #B7A2E7 |
|---|---|
| RGB | rgb(183, 162, 231) |
| HSL | hsl(258, 59%, 77%) |
| HSV | hsv(258, 30%, 91%) |
| CMYK | cmyk(20.8%, 29.9%, 0%, 9.4%) |
| CIE-LAB | lab(70.65, 21.54, -31.95) |
| CIE-LCH | lch(70.65, 38.53, 303.99°) |
| OKLab | oklab(75.53% 0.0467 -0.0881) |
| OKLCH | oklch(75.53% 0.1 298) |
| XYZ | xyz(46.8694, 41.6772, 81.1611) |
| Luminance | 0.4168 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 2.30
Lavender (survey)
#C79FEF
ΔE00 4.01
Pale Violet
#CEAEFA
ΔE00 4.72
Pastel Purple
#CAA0FF
ΔE00 5.36
Lilac (survey)
#CEA2FD
ΔE00 5.43
Baby Purple
#CA9BF7
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7A2E7 #D2E7A2
analogous
#A2B0E7 #B7A2E7 #DAA2E7
triadic
#B7A2E7 #E7B7A2 #A2E7B7
tetradic
#B7A2E7 #E7A2B0 #D2E7A2 #A2E7DA
square
#B7A2E7 #E7A2B0 #D2E7A2 #A2E7DA
split-complementary
#B7A2E7 #E7DAA2 #B0E7A2
monochromatic
#6C41CE #9171DA #B7A2E7 #DDD3F4 #ECE7F9
Accessibility & contrast
On white
2.25
#B7A2E7 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.34
#B7A2E7 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7A2E7
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7A2E7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7A2E7 | 1.00 | 2.25 | 9.34 | 9.34 |
| #FFFFFF | 2.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#92ADEA
Deuteranopia (green-blind)
#95ACE5
Tritanopia (blue-blind)
#AEADBB
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #b7a2e7; /* rgb */ color: rgb(183, 162, 231); /* oklch */ color: oklch(75.5% 0.100 298.0);
Tailwind
colors: {
custom: {
50: '#cdbdef',
500: '#b7a2e7',
950: '#000000',
},
}SCSS
$custom: #b7a2e7; $custom-light: #cdbdef; $custom-dark: #000000;
JSON
{
"hex": "#b7a2e7",
"rgb": {
"r": 183,
"g": 162,
"b": 231
},
"hsl": {
"h": 258.261,
"s": 58.974,
"l": 77.059
},
"oklch": {
"l": 0.75532,
"c": 0.09972,
"h": 298
},
"luminance": 0.41677
}Semantic roles & 50–950 ramp
primary
#B7A2E7
secondary
#EAF0DB
accent
#C71F94
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131216
muted
#828184