#B8A2EC#B8A2EC

#B8A2EC is a light, moderate violet. Relative luminance 0.421; OKLCH L 75.8% C 0.107 H 297.5°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#B8A2EC
RGBrgb(184, 162, 236)
HSLhsl(258, 66%, 78%)
HSVhsv(258, 31%, 93%)
CMYKcmyk(22%, 31.4%, 0%, 7.5%)
CIE-LABlab(70.93, 22.98, -34.23)
CIE-LCHlch(70.93, 41.23, 303.88°)
OKLaboklab(75.83% 0.0492 -0.0946)
OKLCHoklch(75.83% 0.107 297.5)
XYZxyz(47.8244, 42.0868, 84.9446)
Luminance0.4209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A2EC #D6ECA2
analogous
#A2B1EC #B8A2EC #DDA2EC
triadic
#B8A2EC #ECB8A2 #A2ECB8
tetradic
#B8A2EC #ECA2B1 #D6ECA2 #A2ECDD
square
#B8A2EC #ECA2B1 #D6ECA2 #A2ECDD
split-complementary
#B8A2EC #ECDDA2 #B1ECA2
monochromatic
#6A3CD7 #916FE2 #B8A2EC #DFD5F6 #ECE6FA

Accessibility & contrast

On white

2.23
#B8A2EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#B8A2EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A2EC
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A2EC#FFFFFF#000000##000000
##B8A2EC1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91AEEF
Deuteranopia (green-blind)
#94ADEA
Tritanopia (blue-blind)
#AEAEBD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8a2ec;
/* rgb */ color: rgb(184, 162, 236);
/* oklch */ color: oklch(75.8% 0.107 297.5);
Tailwind
colors: {
  custom: {
    50: '#cebdf2',
    500: '#b8a2ec',
    950: '#000000',
  },
}
SCSS
$custom: #b8a2ec;
$custom-light: #cebdf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a2ec",
  "rgb": {
    "r": 184,
    "g": 162,
    "b": 236
  },
  "hsl": {
    "h": 257.838,
    "s": 66.071,
    "l": 78.039
  },
  "oklch": {
    "l": 0.75835,
    "c": 0.10662,
    "h": 297.5
  },
  "luminance": 0.42087
}

Semantic roles & 50–950 ramp

primary
#B8A2EC
secondary
#EAF1DA
accent
#CE1898
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141217
muted
#828185

Preview Lab

Preview with #B8A2EC

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

Preview Lab → · Contrast checker → · Palette generator →

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