#B28DFB#B28DFB

#B28DFB is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.3% C 0.159 H 297.8°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#B28DFB
RGBrgb(178, 141, 251)
HSLhsl(260, 93%, 77%)
HSVhsv(260, 44%, 98%)
CMYKcmyk(29.1%, 43.8%, 0%, 1.6%)
CIE-LABlab(66.12, 36.58, -50.00)
CIE-LCHlch(66.12, 61.95, 306.19°)
OKLaboklab(72.27% 0.074 -0.1402)
OKLCHoklch(72.27% 0.159 297.8)
XYZxyz(45.2934, 35.4793, 95.7100)
Luminance0.3548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28DFB #D6FB8D
analogous
#8D9FFB #B28DFB #E98DFB
triadic
#B28DFB #FBB28D #8DFBB2
tetradic
#B28DFB #FB8D9F #D6FB8D #8DFBE9
square
#B28DFB #FB8D9F #D6FB8D #8DFBE9
split-complementary
#B28DFB #FBE98D #9FFB8D
monochromatic
#6217F7 #8A52F9 #B28DFB #DAC8FD #EBE1FE

Accessibility & contrast

On white

2.59
#B28DFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#B28DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28DFB
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28DFB#FFFFFF#000000##000000
##B28DFB1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#73A0F8
Tritanopia (blue-blind)
#A3A1B8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b28dfb;
/* rgb */ color: rgb(178, 141, 251);
/* oklch */ color: oklch(72.3% 0.159 297.8);
Tailwind
colors: {
  custom: {
    50: '#cbaffd',
    500: '#b28dfb',
    950: '#000000',
  },
}
SCSS
$custom: #b28dfb;
$custom-light: #cbaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#b28dfb",
  "rgb": {
    "r": 178,
    "g": 141,
    "b": 251
  },
  "hsl": {
    "h": 260.182,
    "s": 93.22,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7227,
    "c": 0.15853,
    "h": 297.8
  },
  "luminance": 0.3548
}

Semantic roles & 50–950 ramp

primary
#B28DFB
secondary
#EBF6D5
accent
#E60098
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141018
muted
#827F86

Preview Lab

Preview with #B28DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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