#B8A7EC#B8A7EC

#B8A7EC is a light, moderate violet. Relative luminance 0.439; OKLCH L 76.8% C 0.099 H 295.3°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#B8A7EC
RGBrgb(184, 167, 236)
HSLhsl(255, 64%, 79%)
HSVhsv(255, 29%, 93%)
CMYKcmyk(22%, 29.2%, 0%, 7.5%)
CIE-LABlab(72.15, 20.20, -32.35)
CIE-LCHlch(72.15, 38.14, 301.99°)
OKLaboklab(76.77% 0.0422 -0.0892)
OKLCHoklch(76.77% 0.099 295.3)
XYZxyz(48.7227, 43.8835, 85.2441)
Luminance0.4388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A7EC #DBECA7
analogous
#A7B9EC #B8A7EC #DBA7EC
triadic
#B8A7EC #ECB8A7 #A7ECB8
tetradic
#B8A7EC #ECA7B9 #DBECA7 #A7ECDB
square
#B8A7EC #ECA7B9 #DBECA7 #A7ECDB
split-complementary
#B8A7EC #ECDBA7 #B9ECA7
monochromatic
#6742D6 #8F75E1 #B8A7EC #E1D9F7 #EBE6FA

Accessibility & contrast

On white

2.15
#B8A7EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#B8A7EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A7EC
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A7EC#FFFFFF#000000##000000
##B8A7EC1.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#97B1EF
Deuteranopia (green-blind)
#99B0EA
Tritanopia (blue-blind)
#AEB2C0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b8a7ec;
/* rgb */ color: rgb(184, 167, 236);
/* oklch */ color: oklch(76.8% 0.099 295.3);
Tailwind
colors: {
  custom: {
    50: '#cec1f2',
    500: '#b8a7ec',
    950: '#000000',
  },
}
SCSS
$custom: #b8a7ec;
$custom-light: #cec1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a7ec",
  "rgb": {
    "r": 184,
    "g": 167,
    "b": 236
  },
  "hsl": {
    "h": 254.783,
    "s": 64.486,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76772,
    "c": 0.0987,
    "h": 295.3
  },
  "luminance": 0.43884
}

Semantic roles & 50–950 ramp

primary
#B8A7EC
secondary
#EBF1DA
accent
#CC19A0
background
#FCFBFE
surface
#F9F7FD
border
#D2D0D5
text
#141217
muted
#828185

Preview Lab

Preview with #B8A7EC

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

Preview Lab → · Contrast checker → · Palette generator →

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