#B28CE3#B28CE3

#B28CE3 is a light, vivid violet. Relative luminance 0.338; OKLCH L 70.9% C 0.129 H 303.4°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#B28CE3
RGBrgb(178, 140, 227)
HSLhsl(266, 61%, 72%)
HSVhsv(266, 38%, 89%)
CMYKcmyk(21.6%, 38.3%, 0%, 11%)
CIE-LABlab(64.78, 31.45, -38.90)
CIE-LCHlch(64.78, 50.02, 308.95°)
OKLaboklab(70.89% 0.0712 -0.108)
OKLCHoklch(70.89% 0.129 303.4)
XYZxyz(41.6004, 33.7673, 76.9843)
Luminance0.3377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CE3 #BDE38C
analogous
#8C92E3 #B28CE3 #DE8CE3
triadic
#B28CE3 #E3B28C #8CE3B2
tetradic
#B28CE3 #E38C92 #BDE38C #8CE3DE
square
#B28CE3 #E38C92 #BDE38C #8CE3DE
split-complementary
#B28CE3 #E3DE8C #92E38C
monochromatic
#7130C5 #915BD7 #B28CE3 #D3BDEF #EFE6F9

Accessibility & contrast

On white

2.71
#B28CE3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#B28CE3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CE3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CE3#FFFFFF#000000##000000
##B28CE31.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#789CE6
Deuteranopia (green-blind)
#809DE1
Tritanopia (blue-blind)
#AA9AAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #b28ce3;
/* rgb */ color: rgb(178, 140, 227);
/* oklch */ color: oklch(70.9% 0.129 303.4);
Tailwind
colors: {
  custom: {
    50: '#caaeec',
    500: '#b28ce3',
    950: '#000000',
  },
}
SCSS
$custom: #b28ce3;
$custom-light: #caaeec;
$custom-dark: #000000;
JSON
{
  "hex": "#b28ce3",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 227
  },
  "hsl": {
    "h": 266.207,
    "s": 60.839,
    "l": 71.961
  },
  "oklch": {
    "l": 0.70892,
    "c": 0.12937,
    "h": 303.4
  },
  "luminance": 0.33767
}

Semantic roles & 50–950 ramp

primary
#B28CE3
secondary
#E7F0DA
accent
#C91D7E
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #B28CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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