#B28EE7#B28EE7

#B28EE7 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.4% C 0.131 H 301.8°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#B28EE7
RGBrgb(178, 142, 231)
HSLhsl(264, 65%, 73%)
HSVhsv(264, 39%, 91%)
CMYKcmyk(22.9%, 38.5%, 0%, 9.4%)
CIE-LABlab(65.42, 31.25, -40.11)
CIE-LCHlch(65.42, 50.85, 307.93°)
OKLaboklab(71.44% 0.0692 -0.1115)
OKLCHoklch(71.44% 0.131 301.8)
XYZxyz(42.4538, 34.5805, 80.0239)
Luminance0.3458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EE7 #C3E78E
analogous
#8E96E7 #B28EE7 #DF8EE7
triadic
#B28EE7 #E7B28E #8EE7B2
tetradic
#B28EE7 #E78E96 #C3E78E #8EE7DF
square
#B28EE7 #E78E96 #C3E78E #8EE7DF
split-complementary
#B28EE7 #E7DF8E #96E78E
monochromatic
#6E2CCF #905CDC #B28EE7 #D4C0F2 #EEE6FA

Accessibility & contrast

On white

2.65
#B28EE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#B28EE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EE7
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EE7#FFFFFF#000000##000000
##B28EE71.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#789EEA
Deuteranopia (green-blind)
#809FE5
Tritanopia (blue-blind)
#A99DB0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28ee7;
/* rgb */ color: rgb(178, 142, 231);
/* oklch */ color: oklch(71.4% 0.131 301.8);
Tailwind
colors: {
  custom: {
    50: '#caafef',
    500: '#b28ee7',
    950: '#000000',
  },
}
SCSS
$custom: #b28ee7;
$custom-light: #caafef;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ee7",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 231
  },
  "hsl": {
    "h": 264.27,
    "s": 64.964,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71437,
    "c": 0.13122,
    "h": 301.8
  },
  "luminance": 0.34581
}

Semantic roles & 50–950 ramp

primary
#B28EE7
secondary
#E8F1DA
accent
#CD1984
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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