#B28DF5#B28DF5

#B28DF5 is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.0% C 0.151 H 299.0°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#B28DF5
RGBrgb(178, 141, 245)
HSLhsl(261, 84%, 76%)
HSVhsv(261, 42%, 96%)
CMYKcmyk(27.3%, 42.4%, 0%, 3.9%)
CIE-LABlab(65.83, 35.13, -47.17)
CIE-LCHlch(65.83, 58.81, 306.68°)
OKLaboklab(71.96% 0.0731 -0.132)
OKLCHoklch(71.96% 0.151 299)
XYZxyz(44.3626, 35.1070, 90.8076)
Luminance0.3511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28DF5 #D0F58D
analogous
#8D9CF5 #B28DF5 #E68DF5
triadic
#B28DF5 #F5B28D #8DF5B2
tetradic
#B28DF5 #F58D9C #D0F58D #8DF5E6
square
#B28DF5 #F58D9C #D0F58D #8DF5E6
split-complementary
#B28DF5 #F5E68D #9CF58D
monochromatic
#661CEB #8C55F0 #B28DF5 #D8C5FA #ECE3FD

Accessibility & contrast

On white

2.62
#B28DF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#B28DF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28DF5
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28DF5#FFFFFF#000000##000000
##B28DF51.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0F9
Deuteranopia (green-blind)
#779FF2
Tritanopia (blue-blind)
#A59FB5
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28df5;
/* rgb */ color: rgb(178, 141, 245);
/* oklch */ color: oklch(72.0% 0.151 299.0);
Tailwind
colors: {
  custom: {
    50: '#cbaff9',
    500: '#b28df5',
    950: '#000000',
  },
}
SCSS
$custom: #b28df5;
$custom-light: #cbaff9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28df5",
  "rgb": {
    "r": 178,
    "g": 141,
    "b": 245
  },
  "hsl": {
    "h": 261.346,
    "s": 83.871,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71958,
    "c": 0.15085,
    "h": 299
  },
  "luminance": 0.35107
}

Semantic roles & 50–950 ramp

primary
#B28DF5
secondary
#EAF4D7
accent
#E00592
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B28DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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