#B28BFA#B28BFA

#B28BFA is a light, vivid violet. Relative luminance 0.348; OKLCH L 71.9% C 0.160 H 298.5°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#B28BFA
RGBrgb(178, 139, 250)
HSLhsl(261, 92%, 76%)
HSVhsv(261, 44%, 98%)
CMYKcmyk(28.8%, 44.4%, 0%, 2%)
CIE-LABlab(65.62, 37.45, -50.25)
CIE-LCHlch(65.62, 62.66, 306.70°)
OKLaboklab(71.88% 0.0765 -0.1409)
OKLCHoklch(71.88% 0.16 298.5)
XYZxyz(44.8440, 34.8320, 94.7846)
Luminance0.3483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BFA #D3FA8B
analogous
#8B9CFA #B28BFA #EA8BFA
triadic
#B28BFA #FAB28B #8BFAB2
tetradic
#B28BFA #FA8B9C #D3FA8B #8BFAEA
square
#B28BFA #FA8B9C #D3FA8B #8BFAEA
split-complementary
#B28BFA #FAEA8B #9CFA8B
monochromatic
#6416F5 #8B50F7 #B28BFA #D9C6FD #ECE2FE

Accessibility & contrast

On white

2.64
#B28BFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#B28BFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B28BFA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B28BFA#FFFFFF#000000##000000
##B28BFA1.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9FFE
Deuteranopia (green-blind)
#729EF7
Tritanopia (blue-blind)
#A39FB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28bfa;
/* rgb */ color: rgb(178, 139, 250);
/* oklch */ color: oklch(71.9% 0.160 298.5);
Tailwind
colors: {
  custom: {
    50: '#cbadfc',
    500: '#b28bfa',
    950: '#000000',
  },
}
SCSS
$custom: #b28bfa;
$custom-light: #cbadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bfa",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 250
  },
  "hsl": {
    "h": 261.081,
    "s": 91.736,
    "l": 76.275
  },
  "oklch": {
    "l": 0.71876,
    "c": 0.16034,
    "h": 298.5
  },
  "luminance": 0.34832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B28BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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