#B28BFB#B28BFB

#B28BFB is a light, vivid violet. Relative luminance 0.349; OKLCH L 71.9% C 0.162 H 298.3°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#B28BFB
RGBrgb(178, 139, 251)
HSLhsl(261, 93%, 76%)
HSVhsv(261, 45%, 98%)
CMYKcmyk(29.1%, 44.6%, 0%, 1.6%)
CIE-LABlab(65.67, 37.69, -50.72)
CIE-LCHlch(65.67, 63.19, 306.62°)
OKLaboklab(71.93% 0.0766 -0.1423)
OKLCHoklch(71.93% 0.162 298.3)
XYZxyz(45.0012, 34.8948, 95.6126)
Luminance0.3489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BFB #D4FB8B
analogous
#8B9CFB #B28BFB #EA8BFB
triadic
#B28BFB #FBB28B #8BFBB2
tetradic
#B28BFB #FB8B9C #D4FB8B #8BFBEA
square
#B28BFB #FB8B9C #D4FB8B #8BFBEA
split-complementary
#B28BFB #FBEA8B #9CFB8B
monochromatic
#6315F7 #8B50F9 #B28BFB #D9C6FD #EBE1FE

Accessibility & contrast

On white

2.63
#B28BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#B28BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BFB
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BFB#FFFFFF#000000##000000
##B28BFB1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#719EF8
Tritanopia (blue-blind)
#A39FB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28bfb;
/* rgb */ color: rgb(178, 139, 251);
/* oklch */ color: oklch(71.9% 0.162 298.3);
Tailwind
colors: {
  custom: {
    50: '#cbadfd',
    500: '#b28bfb',
    950: '#000000',
  },
}
SCSS
$custom: #b28bfb;
$custom-light: #cbadfd;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bfb",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 251
  },
  "hsl": {
    "h": 260.893,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71929,
    "c": 0.16161,
    "h": 298.3
  },
  "luminance": 0.34895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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