#B28EE2#B28EE2

#B28EE2 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.2% C 0.125 H 303.1°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#B28EE2
RGBrgb(178, 142, 226)
HSLhsl(266, 59%, 72%)
HSVhsv(266, 37%, 89%)
CMYKcmyk(21.2%, 37.2%, 0%, 11.4%)
CIE-LABlab(65.20, 30.10, -37.69)
CIE-LCHlch(65.20, 48.23, 308.61°)
OKLaboklab(71.2% 0.0681 -0.1045)
OKLCHoklch(71.2% 0.125 303.1)
XYZxyz(41.7577, 34.3020, 76.3578)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28EE2 #BEE28E
analogous
#8E94E2 #B28EE2 #DC8EE2
triadic
#B28EE2 #E2B28E #8EE2B2
tetradic
#B28EE2 #E28E94 #BEE28E #8EE2DC
square
#B28EE2 #E28E94 #BEE28E #8EE2DC
split-complementary
#B28EE2 #E2DC8E #94E28E
monochromatic
#7032C3 #915DD6 #B28EE2 #D3BFEE #EEE7F9

Accessibility & contrast

On white

2.67
#B28EE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#B28EE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28EE2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28EE2#FFFFFF#000000##000000
##B28EE21.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B9DE5
Deuteranopia (green-blind)
#829EE0
Tritanopia (blue-blind)
#AA9BAD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28ee2;
/* rgb */ color: rgb(178, 142, 226);
/* oklch */ color: oklch(71.2% 0.125 303.1);
Tailwind
colors: {
  custom: {
    50: '#caafeb',
    500: '#b28ee2',
    950: '#000000',
  },
}
SCSS
$custom: #b28ee2;
$custom-light: #caafeb;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ee2",
  "rgb": {
    "r": 178,
    "g": 142,
    "b": 226
  },
  "hsl": {
    "h": 265.714,
    "s": 59.155,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71199,
    "c": 0.12478,
    "h": 303.1
  },
  "luminance": 0.34302
}

Semantic roles & 50–950 ramp

primary
#B28EE2
secondary
#E7F0DB
accent
#C71F7F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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