#B28CF5#B28CF5

#B28CF5 is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.8% C 0.152 H 299.2°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#B28CF5
RGBrgb(178, 140, 245)
HSLhsl(262, 84%, 75%)
HSVhsv(262, 43%, 96%)
CMYKcmyk(27.3%, 42.9%, 0%, 3.9%)
CIE-LABlab(65.60, 35.68, -47.53)
CIE-LCHlch(65.60, 59.43, 306.90°)
OKLaboklab(71.79% 0.0744 -0.133)
OKLCHoklch(71.79% 0.152 299.2)
XYZxyz(44.2158, 34.8134, 90.7587)
Luminance0.3481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28CF5 #CFF58C
analogous
#8C9AF5 #B28CF5 #E68CF5
triadic
#B28CF5 #F5B28C #8CF5B2
tetradic
#B28CF5 #F58C9A #CFF58C #8CF5E6
square
#B28CF5 #F58C9A #CFF58C #8CF5E6
split-complementary
#B28CF5 #F5E68C #9AF58C
monochromatic
#671BEB #8C54F0 #B28CF5 #D8C4FA #ECE3FD

Accessibility & contrast

On white

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

On black

7.96
#B28CF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28CF5
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28CF5#FFFFFF#000000##000000
##B28CF51.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9FF9
Deuteranopia (green-blind)
#769FF2
Tritanopia (blue-blind)
#A59EB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28cf5;
/* rgb */ color: rgb(178, 140, 245);
/* oklch */ color: oklch(71.8% 0.152 299.2);
Tailwind
colors: {
  custom: {
    50: '#cbaef9',
    500: '#b28cf5',
    950: '#000000',
  },
}
SCSS
$custom: #b28cf5;
$custom-light: #cbaef9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28cf5",
  "rgb": {
    "r": 178,
    "g": 140,
    "b": 245
  },
  "hsl": {
    "h": 261.714,
    "s": 84,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71786,
    "c": 0.15241,
    "h": 299.2
  },
  "luminance": 0.34814
}

Semantic roles & 50–950 ramp

primary
#B28CF5
secondary
#EAF4D7
accent
#E00591
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B28CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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