#B28BF8#B28BF8

#B28BF8 is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.8% C 0.158 H 298.9°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#B28BF8
RGBrgb(178, 139, 248)
HSLhsl(261, 89%, 76%)
HSVhsv(261, 44%, 97%)
CMYKcmyk(28.2%, 44%, 0%, 2.7%)
CIE-LABlab(65.52, 36.96, -49.30)
CIE-LCHlch(65.52, 61.62, 306.86°)
OKLaboklab(71.77% 0.0762 -0.1382)
OKLCHoklch(71.77% 0.158 298.9)
XYZxyz(44.5320, 34.7072, 93.1418)
Luminance0.3471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BF8 #D1F88B
analogous
#8B9AF8 #B28BF8 #E88BF8
triadic
#B28BF8 #F8B28B #8BF8B2
tetradic
#B28BF8 #F88B9A #D1F88B #8BF8E8
square
#B28BF8 #F88B9A #D1F88B #8BF8E8
split-complementary
#B28BF8 #F8E88B #9AF88B
monochromatic
#6518F1 #8C51F5 #B28BF8 #D8C5FB #ECE2FD

Accessibility & contrast

On white

2.64
#B28BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#B28BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BF8
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BF8#FFFFFF#000000##000000
##B28BF81.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9FFC
Deuteranopia (green-blind)
#739EF5
Tritanopia (blue-blind)
#A49EB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28bf8;
/* rgb */ color: rgb(178, 139, 248);
/* oklch */ color: oklch(71.8% 0.158 298.9);
Tailwind
colors: {
  custom: {
    50: '#cbadfb',
    500: '#b28bf8',
    950: '#000000',
  },
}
SCSS
$custom: #b28bf8;
$custom-light: #cbadfb;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bf8",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 248
  },
  "hsl": {
    "h": 261.468,
    "s": 88.618,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71771,
    "c": 0.1578,
    "h": 298.9
  },
  "luminance": 0.34708
}

Semantic roles & 50–950 ramp

primary
#B28BF8
secondary
#EAF5D6
accent
#E50093
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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