#B28AF9#B28AF9

#B28AF9 is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.7% C 0.161 H 298.9°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#B28AF9
RGBrgb(178, 138, 249)
HSLhsl(262, 90%, 76%)
HSVhsv(262, 45%, 98%)
CMYKcmyk(28.5%, 44.6%, 0%, 2.4%)
CIE-LABlab(65.34, 37.76, -50.13)
CIE-LCHlch(65.34, 62.76, 306.99°)
OKLaboklab(71.65% 0.0777 -0.1406)
OKLCHoklch(71.65% 0.161 298.9)
XYZxyz(44.5434, 34.4812, 93.9130)
Luminance0.3448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28AF9 #D1F98A
analogous
#8A99F9 #B28AF9 #EA8AF9
triadic
#B28AF9 #F9B28A #8AF9B2
tetradic
#B28AF9 #F98A99 #D1F98A #8AF9EA
square
#B28AF9 #F98A99 #D1F98A #8AF9EA
split-complementary
#B28AF9 #F9EA8A #99F98A
monochromatic
#6516F3 #8C50F6 #B28AF9 #D8C4FC #ECE2FE

Accessibility & contrast

On white

2.66
#B28AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#B28AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28AF9
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28AF9#FFFFFF#000000##000000
##B28AF91.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#699FFD
Deuteranopia (green-blind)
#719EF6
Tritanopia (blue-blind)
#A49EB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28af9;
/* rgb */ color: rgb(178, 138, 249);
/* oklch */ color: oklch(71.7% 0.161 298.9);
Tailwind
colors: {
  custom: {
    50: '#cbadfc',
    500: '#b28af9',
    950: '#000000',
  },
}
SCSS
$custom: #b28af9;
$custom-light: #cbadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b28af9",
  "rgb": {
    "r": 178,
    "g": 138,
    "b": 249
  },
  "hsl": {
    "h": 261.622,
    "s": 90.244,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71653,
    "c": 0.16062,
    "h": 298.9
  },
  "luminance": 0.34481
}

Semantic roles & 50–950 ramp

primary
#B28AF9
secondary
#EAF6D5
accent
#E60093
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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