#B28BEE#B28BEE

#B28BEE is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.3% C 0.145 H 301.0°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#B28BEE
RGBrgb(178, 139, 238)
HSLhsl(264, 74%, 74%)
HSVhsv(264, 42%, 93%)
CMYKcmyk(25.2%, 41.6%, 0%, 6.7%)
CIE-LABlab(65.04, 34.57, -44.56)
CIE-LCHlch(65.04, 56.40, 307.81°)
OKLaboklab(71.26% 0.0746 -0.1244)
OKLCHoklch(71.26% 0.145 301)
XYZxyz(43.0219, 34.1031, 85.1884)
Luminance0.3410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BEE #C7EE8B
analogous
#8B96EE #B28BEE #E38BEE
triadic
#B28BEE #EEB28B #8BEEB2
tetradic
#B28BEE #EE8B96 #C7EE8B #8BEEE3
square
#B28BEE #EE8B96 #C7EE8B #8BEEE3
split-complementary
#B28BEE #EEE38B #96EE8B
monochromatic
#6B21DE #8F56E6 #B28BEE #D5C0F6 #EDE4FB

Accessibility & contrast

On white

2.69
#B28BEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#B28BEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BEE
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BEE#FFFFFF#000000##000000
##B28BEE1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#719DF2
Deuteranopia (green-blind)
#799DEB
Tritanopia (blue-blind)
#A79CB1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28bee;
/* rgb */ color: rgb(178, 139, 238);
/* oklch */ color: oklch(71.3% 0.145 301.0);
Tailwind
colors: {
  custom: {
    50: '#cbadf4',
    500: '#b28bee',
    950: '#000000',
  },
}
SCSS
$custom: #b28bee;
$custom-light: #cbadf4;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bee",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 238
  },
  "hsl": {
    "h": 263.636,
    "s": 74.436,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71257,
    "c": 0.14505,
    "h": 301
  },
  "luminance": 0.34103
}

Semantic roles & 50–950 ramp

primary
#B28BEE
secondary
#E8F3D8
accent
#D70F88
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B28BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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