#BB7AFB#BB7AFB

#BB7AFB is a light, vivid violet. Relative luminance 0.314; OKLCH L 70.1% C 0.190 H 305.3°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#BB7AFB
RGBrgb(187, 122, 251)
HSLhsl(270, 94%, 73%)
HSVhsv(270, 51%, 98%)
CMYKcmyk(25.5%, 51.4%, 0%, 1.6%)
CIE-LABlab(62.88, 49.28, -55.07)
CIE-LCHlch(62.88, 73.90, 311.82°)
OKLaboklab(70.06% 0.1096 -0.1547)
OKLCHoklch(70.06% 0.19 305.3)
XYZxyz(44.8619, 31.4492, 94.9550)
Luminance0.3145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB7AFB #BAFB7A
analogous
#7A7AFB #BB7AFB #FB7AFA
triadic
#BB7AFB #FBBB7A #7AFBBB
tetradic
#BB7AFB #FB7A7A #BAFB7A #7AFAFB
square
#BB7AFB #FB7A7A #BAFB7A #7AFAFB
split-complementary
#BB7AFB #FAFB7A #7AFB7A
monochromatic
#7E07F3 #9D3FF9 #BB7AFB #D9B5FD #F0E1FE

Accessibility & contrast

On white

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

On black

7.29
#BB7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB7AFB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB7AFB#FFFFFF#000000##000000
##BB7AFB1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5196FF
Deuteranopia (green-blind)
#6598F8
Tritanopia (blue-blind)
#B091AF
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #bb7afb;
/* rgb */ color: rgb(187, 122, 251);
/* oklch */ color: oklch(70.1% 0.190 305.3);
Tailwind
colors: {
  custom: {
    50: '#d2a2fd',
    500: '#bb7afb',
    950: '#000000',
  },
}
SCSS
$custom: #bb7afb;
$custom-light: #d2a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb7afb",
  "rgb": {
    "r": 187,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 270.233,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70059,
    "c": 0.18961,
    "h": 305.3
  },
  "luminance": 0.31449
}

Semantic roles & 50–950 ramp

primary
#BB7AFB
secondary
#E5F6D5
accent
#E60072
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BB7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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