#BB7AF5#BB7AF5

#BB7AF5 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.7% C 0.183 H 306.7°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#BB7AF5
RGBrgb(187, 122, 245)
HSLhsl(272, 86%, 72%)
HSVhsv(272, 50%, 96%)
CMYKcmyk(23.7%, 50.2%, 0%, 3.9%)
CIE-LABlab(62.57, 47.91, -52.26)
CIE-LCHlch(62.57, 70.90, 312.51°)
OKLaboklab(69.73% 0.1091 -0.1465)
OKLCHoklch(69.73% 0.183 306.7)
XYZxyz(43.9311, 31.0768, 90.0526)
Luminance0.3108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB7AF5 #B4F57A
analogous
#7E7AF5 #BB7AF5 #F57AF2
triadic
#BB7AF5 #F5BB7A #7AF5BB
tetradic
#BB7AF5 #F57E7A #B4F57A #7AF2F5
square
#BB7AF5 #F57E7A #B4F57A #7AF2F5
split-complementary
#BB7AF5 #F2F57A #7AF57E
monochromatic
#8011E3 #9E41F1 #BB7AF5 #D8B3F9 #F0E3FD

Accessibility & contrast

On white

2.91
#BB7AF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#BB7AF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BB7AF5
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB7AF5#FFFFFF#000000##000000
##BB7AF51.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5695F9
Deuteranopia (green-blind)
#6998F2
Tritanopia (blue-blind)
#B290AC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #bb7af5;
/* rgb */ color: rgb(187, 122, 245);
/* oklch */ color: oklch(69.7% 0.183 306.7);
Tailwind
colors: {
  custom: {
    50: '#d2a2f9',
    500: '#bb7af5',
    950: '#000000',
  },
}
SCSS
$custom: #bb7af5;
$custom-light: #d2a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb7af5",
  "rgb": {
    "r": 187,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 271.707,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69725,
    "c": 0.18269,
    "h": 306.7
  },
  "luminance": 0.31076
}

Semantic roles & 50–950 ramp

primary
#BB7AF5
secondary
#E5F5D6
accent
#E3036C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BB7AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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