#B28BEC#B28BEC

#B28BEC is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.2% C 0.142 H 301.4°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#B28BEC
RGBrgb(178, 139, 236)
HSLhsl(264, 72%, 74%)
HSVhsv(264, 41%, 93%)
CMYKcmyk(24.6%, 41.1%, 0%, 7.5%)
CIE-LABlab(64.95, 34.10, -43.60)
CIE-LCHlch(64.95, 55.35, 308.03°)
OKLaboklab(71.16% 0.0743 -0.1216)
OKLCHoklch(71.16% 0.143 301.4)
XYZxyz(42.7297, 33.9863, 83.6495)
Luminance0.3399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BEC #C5EC8B
analogous
#8B94EC #B28BEC #E38BEC
triadic
#B28BEC #ECB28B #8BECB2
tetradic
#B28BEC #EC8B94 #C5EC8B #8BECE3
square
#B28BEC #EC8B94 #C5EC8B #8BECE3
split-complementary
#B28BEC #ECE38B #94EC8B
monochromatic
#6D24D9 #8F56E3 #B28BEC #D5C0F5 #EEE5FB

Accessibility & contrast

On white

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

On black

7.80
#B28BEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BEC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BEC#FFFFFF#000000##000000
##B28BEC1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#729DF0
Deuteranopia (green-blind)
#7A9DE9
Tritanopia (blue-blind)
#A89BB0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #b28bec;
/* rgb */ color: rgb(178, 139, 236);
/* oklch */ color: oklch(71.2% 0.142 301.4);
Tailwind
colors: {
  custom: {
    50: '#cbadf2',
    500: '#b28bec',
    950: '#000000',
  },
}
SCSS
$custom: #b28bec;
$custom-light: #cbadf2;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bec",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 236
  },
  "hsl": {
    "h": 264.124,
    "s": 71.852,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71156,
    "c": 0.1425,
    "h": 301.4
  },
  "luminance": 0.33986
}

Semantic roles & 50–950 ramp

primary
#B28BEC
secondary
#E8F2D9
accent
#D41286
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #B28BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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