#BB7AFC#BB7AFC

#BB7AFC is a light, vivid violet. Relative luminance 0.315; OKLCH L 70.1% C 0.191 H 305.1°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#BB7AFC
RGBrgb(187, 122, 252)
HSLhsl(270, 96%, 73%)
HSVhsv(270, 52%, 99%)
CMYKcmyk(25.8%, 51.6%, 0%, 1.2%)
CIE-LABlab(62.94, 49.51, -55.54)
CIE-LCHlch(62.94, 74.40, 311.71°)
OKLaboklab(70.12% 0.1097 -0.1561)
OKLCHoklch(70.12% 0.191 305.1)
XYZxyz(45.0200, 31.5124, 95.7874)
Luminance0.3151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB7AFC #BBFC7A
analogous
#7A7AFC #BB7AFC #FC7AFC
triadic
#BB7AFC #FCBB7A #7AFCBB
tetradic
#BB7AFC #FC7A7A #BBFC7A #7AFCFC
square
#BB7AFC #FC7A7A #BBFC7A #7AFCFC
split-complementary
#BB7AFC #FCFC7A #7AFC7A
monochromatic
#7E06F6 #9C3EFB #BB7AFC #DAB6FD #F0E1FE

Accessibility & contrast

On white

2.88
#BB7AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#BB7AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB7AFC
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB7AFC#FFFFFF#000000##000000
##BB7AFC1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5096FF
Deuteranopia (green-blind)
#6498F9
Tritanopia (blue-blind)
#B092B0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #bb7afc;
/* rgb */ color: rgb(187, 122, 252);
/* oklch */ color: oklch(70.1% 0.191 305.1);
Tailwind
colors: {
  custom: {
    50: '#d2a2fe',
    500: '#bb7afc',
    950: '#000000',
  },
}
SCSS
$custom: #bb7afc;
$custom-light: #d2a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#bb7afc",
  "rgb": {
    "r": 187,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 270,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70115,
    "c": 0.19077,
    "h": 305.1
  },
  "luminance": 0.31512
}

Semantic roles & 50–950 ramp

primary
#BB7AFC
secondary
#E6F7D4
accent
#E60073
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BB7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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