#B28DF7#B28DF7

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

Color values

HEX#B28DF7
RGBrgb(178, 141, 247)
HSLhsl(261, 87%, 76%)
HSVhsv(261, 43%, 97%)
CMYKcmyk(27.9%, 42.9%, 0%, 3.1%)
CIE-LABlab(65.93, 35.61, -48.11)
CIE-LCHlch(65.93, 59.86, 306.50°)
OKLaboklab(72.06% 0.0734 -0.1347)
OKLCHoklch(72.06% 0.153 298.6)
XYZxyz(44.6695, 35.2298, 92.4243)
Luminance0.3523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28DF7 #D2F78D
analogous
#8D9DF7 #B28DF7 #E78DF7
triadic
#B28DF7 #F7B28D #8DF7B2
tetradic
#B28DF7 #F78D9D #D2F78D #8DF7E7
square
#B28DF7 #F78D9D #D2F78D #8DF7E7
split-complementary
#B28DF7 #F7E78D #9DF78D
monochromatic
#651BEF #8B54F3 #B28DF7 #D9C6FB #ECE2FD

Accessibility & contrast

On white

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

On black

8.05
#B28DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28DF7
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28DF7#FFFFFF#000000##000000
##B28DF71.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FB
Deuteranopia (green-blind)
#769FF4
Tritanopia (blue-blind)
#A4A0B6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b28df7;
/* rgb */ color: rgb(178, 141, 247);
/* oklch */ color: oklch(72.1% 0.153 298.6);
Tailwind
colors: {
  custom: {
    50: '#cbaffa',
    500: '#b28df7',
    950: '#000000',
  },
}
SCSS
$custom: #b28df7;
$custom-light: #cbaffa;
$custom-dark: #000000;
JSON
{
  "hex": "#b28df7",
  "rgb": {
    "r": 178,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 260.943,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72061,
    "c": 0.15341,
    "h": 298.6
  },
  "luminance": 0.3523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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