#B28AFC#B28AFC

#B28AFC is a light, vivid violet. Relative luminance 0.347; OKLCH L 71.8% C 0.164 H 298.4°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#B28AFC
RGBrgb(178, 138, 252)
HSLhsl(261, 95%, 76%)
HSVhsv(261, 45%, 99%)
CMYKcmyk(29.4%, 45.2%, 0%, 1.2%)
CIE-LABlab(65.49, 38.49, -51.54)
CIE-LCHlch(65.49, 64.33, 306.75°)
OKLaboklab(71.81% 0.0781 -0.1447)
OKLCHoklch(71.81% 0.164 298.4)
XYZxyz(45.0151, 34.6698, 96.3969)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AFC #D4FC8A
analogous
#8A9BFC #B28AFC #EB8AFC
triadic
#B28AFC #FCB28A #8AFCB2
tetradic
#B28AFC #FC8A9B #D4FC8A #8AFCEB
square
#B28AFC #FC8A9B #D4FC8A #8AFCEB
split-complementary
#B28AFC #FCEB8A #9BFC8A
monochromatic
#6313F9 #8B4EFA #B28AFC #D9C6FE #EBE1FE

Accessibility & contrast

On white

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

On black

7.93
#B28AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AFC
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AFC#FFFFFF#000000##000000
##B28AFC1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#679FFF
Deuteranopia (green-blind)
#6F9EF9
Tritanopia (blue-blind)
#A39FB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28afc;
/* rgb */ color: rgb(178, 138, 252);
/* oklch */ color: oklch(71.8% 0.164 298.4);
Tailwind
colors: {
  custom: {
    50: '#ccadfe',
    500: '#b28afc',
    950: '#000000',
  },
}
SCSS
$custom: #b28afc;
$custom-light: #ccadfe;
$custom-dark: #000000;
JSON
{
  "hex": "#b28afc",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 252
  },
  "hsl": {
    "h": 261.053,
    "s": 95,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71813,
    "c": 0.16441,
    "h": 298.4
  },
  "luminance": 0.3467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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