#BAB2DF#BAB2DF
#BAB2DF is a light, moderate violet. Relative luminance 0.476; OKLCH L 78.5% C 0.064 H 293.0°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB2DF |
|---|---|
| RGB | rgb(186, 178, 223) |
| HSL | hsl(251, 41%, 79%) |
| HSV | hsv(251, 20%, 87%) |
| CMYK | cmyk(16.6%, 20.2%, 0%, 12.5%) |
| CIE-LAB | lab(74.58, 11.82, -21.54) |
| CIE-LCH | lch(74.58, 24.57, 298.77°) |
| OKLab | oklab(78.53% 0.025 -0.0587) |
| OKLCH | oklch(78.53% 0.064 293) |
| XYZ | xyz(49.4865, 47.6072, 76.3797) |
| Luminance | 0.4761 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 6.60
Light Periwinkle
#C1C6FC
ΔE00 6.82
Periwinkle
#CCCCFF
ΔE00 7.02
Pale Violet
#CEAEFA
ΔE00 7.44
Light Violet
#D6B4FC
ΔE00 7.65
Light Lavender
#DFC5FE
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB2DF #D7DFB2
analogous
#B2C0DF #BAB2DF #D0B2DF
triadic
#BAB2DF #DFBAB2 #B2DFBA
tetradic
#BAB2DF #DFB2C0 #D7DFB2 #B2DFD0
square
#BAB2DF #DFB2C0 #D7DFB2 #B2DFD0
split-complementary
#BAB2DF #DFD0B2 #C0DFB2
monochromatic
#6D5CBB #9387CD #BAB2DF #E1DDF1 #ECE9F6
Accessibility & contrast
On white
2.00
#BAB2DF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.52
#BAB2DF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB2DF
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB2DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB2DF | 1.00 | 2.00 | 10.52 | 10.52 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A8B8E1
Deuteranopia (green-blind)
#A9B7DE
Tritanopia (blue-blind)
#B3B9C1
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #bab2df; /* rgb */ color: rgb(186, 178, 223); /* oklch */ color: oklch(78.5% 0.064 293.0);
Tailwind
colors: {
custom: {
50: '#cfc9e9',
500: '#bab2df',
950: '#000000',
},
}SCSS
$custom: #bab2df; $custom-light: #cfc9e9; $custom-dark: #000000;
JSON
{
"hex": "#bab2df",
"rgb": {
"r": 186,
"g": 178,
"b": 223
},
"hsl": {
"h": 250.667,
"s": 41.284,
"l": 78.627
},
"oklch": {
"l": 0.78529,
"c": 0.06381,
"h": 293
},
"luminance": 0.47608
}Semantic roles & 50–950 ramp
primary
#BAB2DF
secondary
#EAEDDE
accent
#B4319D
background
#FCFCFE
surface
#F9F8FC
border
#D2D1D5
text
#141316
muted
#828284