#B2A1EA#B2A1EA

#B2A1EA is a light, moderate violet. Relative luminance 0.409; OKLCH L 75.1% C 0.105 H 294.4°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#B2A1EA
RGBrgb(178, 161, 234)
HSLhsl(254, 63%, 77%)
HSVhsv(254, 31%, 92%)
CMYKcmyk(23.9%, 31.2%, 0%, 8.2%)
CIE-LABlab(70.10, 21.30, -34.47)
CIE-LCHlch(70.10, 40.52, 301.72°)
OKLaboklab(75.05% 0.0433 -0.0954)
OKLCHoklch(75.05% 0.105 294.4)
XYZxyz(45.9528, 40.8947, 83.2984)
Luminance0.4089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A1EA #D9EAA1
analogous
#A1B4EA #B2A1EA #D7A1EA
triadic
#B2A1EA #EAB2A1 #A1EAB2
tetradic
#B2A1EA #EAA1B4 #D9EAA1 #A1EAD7
square
#B2A1EA #EAA1B4 #D9EAA1 #A1EAD7
split-complementary
#B2A1EA #EAD7A1 #B4EAA1
monochromatic
#603DD4 #896FDF #B2A1EA #DBD3F5 #EBE6F9

Accessibility & contrast

On white

2.29
#B2A1EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#B2A1EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A1EA
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A1EA#FFFFFF#000000##000000
##B2A1EA1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FACED
Deuteranopia (green-blind)
#91AAE8
Tritanopia (blue-blind)
#A7ADBB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #b2a1ea;
/* rgb */ color: rgb(178, 161, 234);
/* oklch */ color: oklch(75.1% 0.105 294.4);
Tailwind
colors: {
  custom: {
    50: '#cabcf1',
    500: '#b2a1ea',
    950: '#000000',
  },
}
SCSS
$custom: #b2a1ea;
$custom-light: #cabcf1;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a1ea",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 234
  },
  "hsl": {
    "h": 253.973,
    "s": 63.478,
    "l": 77.451
  },
  "oklch": {
    "l": 0.75051,
    "c": 0.10475,
    "h": 294.4
  },
  "luminance": 0.40895
}

Semantic roles & 50–950 ramp

primary
#B2A1EA
secondary
#ECF1DA
accent
#CB1AA2
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #B2A1EA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B2A1EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva