#B2A2E8#B2A2E8

#B2A2E8 is a light, moderate violet. Relative luminance 0.411; OKLCH L 75.2% C 0.100 H 294.3°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#B2A2E8
RGBrgb(178, 162, 232)
HSLhsl(254, 60%, 77%)
HSVhsv(254, 30%, 91%)
CMYKcmyk(23.3%, 30.2%, 0%, 9%)
CIE-LABlab(70.27, 20.27, -33.12)
CIE-LCHlch(70.27, 38.83, 301.47°)
OKLaboklab(75.15% 0.0414 -0.0915)
OKLCHoklch(75.15% 0.1 294.3)
XYZxyz(45.8425, 41.1313, 81.8522)
Luminance0.4113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A2E8 #D8E8A2
analogous
#A2B5E8 #B2A2E8 #D5A2E8
triadic
#B2A2E8 #E8B2A2 #A2E8B2
tetradic
#B2A2E8 #E8A2B5 #D8E8A2 #A2E8D5
square
#B2A2E8 #E8A2B5 #D8E8A2 #A2E8D5
split-complementary
#B2A2E8 #E8D5A2 #B5E8A2
monochromatic
#6140D0 #8971DC #B2A2E8 #DBD3F4 #EBE6F9

Accessibility & contrast

On white

2.28
#B2A2E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#B2A2E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A2E8
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A2E8#FFFFFF#000000##000000
##B2A2E81.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91ACEB
Deuteranopia (green-blind)
#93ABE6
Tritanopia (blue-blind)
#A7ADBB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2a2e8;
/* rgb */ color: rgb(178, 162, 232);
/* oklch */ color: oklch(75.2% 0.100 294.3);
Tailwind
colors: {
  custom: {
    50: '#cabdef',
    500: '#b2a2e8',
    950: '#000000',
  },
}
SCSS
$custom: #b2a2e8;
$custom-light: #cabdef;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a2e8",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 232
  },
  "hsl": {
    "h": 253.714,
    "s": 60.345,
    "l": 77.255
  },
  "oklch": {
    "l": 0.75152,
    "c": 0.10044,
    "h": 294.3
  },
  "luminance": 0.41132
}

Semantic roles & 50–950 ramp

primary
#B2A2E8
secondary
#EBF0DB
accent
#C81DA1
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #B2A2E8

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

Preview Lab → · Contrast checker → · Palette generator →

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