#B2A2EC#B2A2EC
#B2A2EC is a light, moderate violet. Relative luminance 0.414; OKLCH L 75.3% C 0.106 H 293.6°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #B2A2EC |
|---|---|
| RGB | rgb(178, 162, 236) |
| HSL | hsl(253, 66%, 78%) |
| HSV | hsv(253, 31%, 93%) |
| CMYK | cmyk(24.6%, 31.4%, 0%, 7.5%) |
| CIE-LAB | lab(70.43, 21.21, -35.05) |
| CIE-LCH | lch(70.43, 40.97, 301.18°) |
| OKLab | oklab(75.33% 0.0424 -0.097) |
| OKLCH | oklch(75.33% 0.106 293.6) |
| XYZ | xyz(46.4172, 41.3612, 84.8786) |
| Luminance | 0.4136 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 3.79
Lavender (survey)
#C79FEF
ΔE00 5.21
Pale Violet
#CEAEFA
ΔE00 5.62
Pastel Purple
#CAA0FF
ΔE00 5.63
Lilac (survey)
#CEA2FD
ΔE00 6.06
Baby Purple
#CA9BF7
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2A2EC #DCECA2
analogous
#A2B7EC #B2A2EC #D7A2EC
triadic
#B2A2EC #ECB2A2 #A2ECB2
tetradic
#B2A2EC #ECA2B7 #DCECA2 #A2ECD7
square
#B2A2EC #ECA2B7 #DCECA2 #A2ECD7
split-complementary
#B2A2EC #ECD7A2 #B7ECA2
monochromatic
#5E3CD7 #886FE2 #B2A2EC #DCD5F6 #EAE6FA
Accessibility & contrast
On white
2.26
#B2A2EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.27
#B2A2EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2A2EC
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2A2EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2A2EC | 1.00 | 2.26 | 9.27 | 9.27 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8FADEF
Deuteranopia (green-blind)
#91ABEA
Tritanopia (blue-blind)
#A6AEBD
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #b2a2ec; /* rgb */ color: rgb(178, 162, 236); /* oklch */ color: oklch(75.3% 0.106 293.6);
Tailwind
colors: {
custom: {
50: '#cabdf2',
500: '#b2a2ec',
950: '#000000',
},
}SCSS
$custom: #b2a2ec; $custom-light: #cabdf2; $custom-dark: #000000;
JSON
{
"hex": "#b2a2ec",
"rgb": {
"r": 178,
"g": 162,
"b": 236
},
"hsl": {
"h": 252.973,
"s": 66.071,
"l": 78.039
},
"oklch": {
"l": 0.75328,
"c": 0.10592,
"h": 293.6
},
"luminance": 0.41362
}Semantic roles & 50–950 ramp
primary
#B2A2EC
secondary
#ECF1DA
accent
#CE18A7
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185