#B28BFC#B28BFC

#B28BFC is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.0% C 0.163 H 298.1°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#B28BFC
RGBrgb(178, 139, 252)
HSLhsl(261, 95%, 77%)
HSVhsv(261, 45%, 99%)
CMYKcmyk(29.4%, 44.8%, 0%, 1.2%)
CIE-LABlab(65.72, 37.93, -51.18)
CIE-LCHlch(65.72, 63.71, 306.54°)
OKLaboklab(71.98% 0.0768 -0.1436)
OKLCHoklch(71.98% 0.163 298.1)
XYZxyz(45.1592, 34.9581, 96.4450)
Luminance0.3496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BFC #D5FC8B
analogous
#8B9DFC #B28BFC #EB8BFC
triadic
#B28BFC #FCB28B #8BFCB2
tetradic
#B28BFC #FC8B9D #D5FC8B #8BFCEB
square
#B28BFC #FC8B9D #D5FC8B #8BFCEB
split-complementary
#B28BFC #FCEB8B #9DFC8B
monochromatic
#6314F9 #8A4FFA #B28BFC #DAC7FE #EBE1FE

Accessibility & contrast

On white

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

On black

7.99
#B28BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BFC
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BFC#FFFFFF#000000##000000
##B28BFC1.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A0FF
Deuteranopia (green-blind)
#719FF9
Tritanopia (blue-blind)
#A39FB8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28bfc;
/* rgb */ color: rgb(178, 139, 252);
/* oklch */ color: oklch(72.0% 0.163 298.1);
Tailwind
colors: {
  custom: {
    50: '#ccadfe',
    500: '#b28bfc',
    950: '#000000',
  },
}
SCSS
$custom: #b28bfc;
$custom-light: #ccadfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bfc",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 252
  },
  "hsl": {
    "h": 260.708,
    "s": 94.958,
    "l": 76.667
  },
  "oklch": {
    "l": 0.71982,
    "c": 0.16288,
    "h": 298.1
  },
  "luminance": 0.34958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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