#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
RGBrgb(178, 162, 236)
HSLhsl(253, 66%, 78%)
HSVhsv(253, 31%, 93%)
CMYKcmyk(24.6%, 31.4%, 0%, 7.5%)
CIE-LABlab(70.43, 21.21, -35.05)
CIE-LCHlch(70.43, 40.97, 301.18°)
OKLaboklab(75.33% 0.0424 -0.097)
OKLCHoklch(75.33% 0.106 293.6)
XYZxyz(46.4172, 41.3612, 84.8786)
Luminance0.4136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

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
##B2A2EC1.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.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

Preview Lab

Preview with #B2A2EC

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

Preview Lab → · Contrast checker → · Palette generator →

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