#B28BF7#B28BF7

#B28BF7 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.7% C 0.157 H 299.1°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#B28BF7
RGBrgb(178, 139, 247)
HSLhsl(262, 87%, 76%)
HSVhsv(262, 44%, 97%)
CMYKcmyk(27.9%, 43.7%, 0%, 3.1%)
CIE-LABlab(65.47, 36.72, -48.83)
CIE-LCHlch(65.47, 61.10, 306.94°)
OKLaboklab(71.72% 0.0761 -0.1368)
OKLCHoklch(71.72% 0.157 299.1)
XYZxyz(44.3773, 34.6453, 92.3269)
Luminance0.3465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B28BF7 #D0F78B
analogous
#8B9AF7 #B28BF7 #E88BF7
triadic
#B28BF7 #F7B28B #8BF7B2
tetradic
#B28BF7 #F78B9A #D0F78B #8BF7E8
square
#B28BF7 #F78B9A #D0F78B #8BF7E8
split-complementary
#B28BF7 #F7E88B #9AF78B
monochromatic
#6618EF #8C52F3 #B28BF7 #D8C4FB #ECE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B28BF7#FFFFFF#000000##000000
##B28BF71.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)
#6C9FFB
Deuteranopia (green-blind)
#749EF4
Tritanopia (blue-blind)
#A49EB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b28bf7;
/* rgb */ color: rgb(178, 139, 247);
/* oklch */ color: oklch(71.7% 0.157 299.1);
Tailwind
colors: {
  custom: {
    50: '#cbadfa',
    500: '#b28bf7',
    950: '#000000',
  },
}
SCSS
$custom: #b28bf7;
$custom-light: #cbadfa;
$custom-dark: #000000;
JSON
{
  "hex": "#b28bf7",
  "rgb": {
    "r": 178,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 261.667,
    "s": 87.097,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71718,
    "c": 0.15652,
    "h": 299.1
  },
  "luminance": 0.34646
}

Semantic roles & 50–950 ramp

primary
#B28BF7
secondary
#EAF5D6
accent
#E40292
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#141017
muted
#827F85

Preview Lab

Preview with #B28BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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