#B28BF6#B28BF6

#B28BF6 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.7% C 0.155 H 299.3°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#B28BF6
RGBrgb(178, 139, 246)
HSLhsl(262, 86%, 75%)
HSVhsv(262, 43%, 96%)
CMYKcmyk(27.6%, 43.5%, 0%, 3.5%)
CIE-LABlab(65.42, 36.48, -48.36)
CIE-LCHlch(65.42, 60.58, 307.03°)
OKLaboklab(71.67% 0.0759 -0.1354)
OKLCHoklch(71.67% 0.155 299.3)
XYZxyz(44.2234, 34.5837, 91.5164)
Luminance0.3458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BF6 #CFF68B
analogous
#8B99F6 #B28BF6 #E78BF6
triadic
#B28BF6 #F6B28B #8BF6B2
tetradic
#B28BF6 #F68B99 #CFF68B #8BF6E7
square
#B28BF6 #F68B99 #CFF68B #8BF6E7
split-complementary
#B28BF6 #F6E78B #99F68B
monochromatic
#6719ED #8C52F2 #B28BF6 #D8C4FA #ECE3FD

Accessibility & contrast

On white

2.65
#B28BF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#B28BF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BF6
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BF6#FFFFFF#000000##000000
##B28BF61.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFA
Deuteranopia (green-blind)
#749EF3
Tritanopia (blue-blind)
#A59EB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28bf6;
/* rgb */ color: rgb(178, 139, 246);
/* oklch */ color: oklch(71.7% 0.155 299.3);
Tailwind
colors: {
  custom: {
    50: '#cbadf9',
    500: '#b28bf6',
    950: '#000000',
  },
}
SCSS
$custom: #b28bf6;
$custom-light: #cbadf9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bf6",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 246
  },
  "hsl": {
    "h": 261.869,
    "s": 85.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71666,
    "c": 0.15525,
    "h": 299.3
  },
  "luminance": 0.34584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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