#B28DF6#B28DF6

#B28DF6 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.0% C 0.152 H 298.8°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B28DF6
RGBrgb(178, 141, 246)
HSLhsl(261, 85%, 76%)
HSVhsv(261, 43%, 96%)
CMYKcmyk(27.6%, 42.7%, 0%, 3.5%)
CIE-LABlab(65.88, 35.37, -47.64)
CIE-LCHlch(65.88, 59.33, 306.59°)
OKLaboklab(72.01% 0.0732 -0.1333)
OKLCHoklch(72.01% 0.152 298.8)
XYZxyz(44.5156, 35.1682, 91.6138)
Luminance0.3517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28DF6 #D1F68D
analogous
#8D9CF6 #B28DF6 #E68DF6
triadic
#B28DF6 #F6B28D #8DF6B2
tetradic
#B28DF6 #F68D9C #D1F68D #8DF6E6
square
#B28DF6 #F68D9C #D1F68D #8DF6E6
split-complementary
#B28DF6 #F6E68D #9CF68D
monochromatic
#651CED #8C54F2 #B28DF6 #D8C6FA #ECE3FD

Accessibility & contrast

On white

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

On black

8.03
#B28DF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28DF6
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28DF6#FFFFFF#000000##000000
##B28DF61.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FA
Deuteranopia (green-blind)
#769FF3
Tritanopia (blue-blind)
#A59FB6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28df6;
/* rgb */ color: rgb(178, 141, 246);
/* oklch */ color: oklch(72.0% 0.152 298.8);
Tailwind
colors: {
  custom: {
    50: '#cbaff9',
    500: '#b28df6',
    950: '#000000',
  },
}
SCSS
$custom: #b28df6;
$custom-light: #cbaff9;
$custom-dark: #000000;
JSON
{
  "hex": "#b28df6",
  "rgb": {
    "r": 178,
    "g": 141,
    "b": 246
  },
  "hsl": {
    "h": 261.143,
    "s": 85.366,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7201,
    "c": 0.15213,
    "h": 298.8
  },
  "luminance": 0.35169
}

Semantic roles & 50–950 ramp

primary
#B28DF6
secondary
#EAF5D6
accent
#E20494
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #B28DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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