#B28CFB#B28CFB

#B28CFB is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.1% C 0.160 H 298.1°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B28CFB
RGBrgb(178, 140, 251)
HSLhsl(261, 93%, 77%)
HSVhsv(261, 44%, 98%)
CMYKcmyk(29.1%, 44.2%, 0%, 1.6%)
CIE-LABlab(65.89, 37.13, -50.36)
CIE-LCHlch(65.89, 62.57, 306.40°)
OKLaboklab(72.1% 0.0753 -0.1412)
OKLCHoklch(72.1% 0.16 298.1)
XYZxyz(45.1466, 35.1858, 95.6611)
Luminance0.3519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CFB #D5FB8C
analogous
#8C9EFB #B28CFB #EA8CFB
triadic
#B28CFB #FBB28C #8CFBB2
tetradic
#B28CFB #FB8C9E #D5FB8C #8CFBEA
square
#B28CFB #FB8C9E #D5FB8C #8CFBEA
split-complementary
#B28CFB #FBEA8C #9EFB8C
monochromatic
#6316F7 #8A51F9 #B28CFB #DAC7FD #EBE1FE

Accessibility & contrast

On white

2.61
#B28CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B28CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CFB
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CFB#FFFFFF#000000##000000
##B28CFB1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA0FF
Deuteranopia (green-blind)
#729FF8
Tritanopia (blue-blind)
#A3A0B8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28cfb;
/* rgb */ color: rgb(178, 140, 251);
/* oklch */ color: oklch(72.1% 0.160 298.1);
Tailwind
colors: {
  custom: {
    50: '#cbaefd',
    500: '#b28cfb',
    950: '#000000',
  },
}
SCSS
$custom: #b28cfb;
$custom-light: #cbaefd;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cfb",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 260.541,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.72099,
    "c": 0.16006,
    "h": 298.1
  },
  "luminance": 0.35186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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