#BB42AB#BB42AB

#BB42AB is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.4% C 0.195 H 333.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BB42AB
RGBrgb(187, 66, 171)
HSLhsl(308, 48%, 50%)
HSVhsv(308, 65%, 73%)
CMYKcmyk(0%, 64.7%, 8.6%, 26.7%)
CIE-LABlab(48.76, 60.49, -31.95)
CIE-LCHlch(48.76, 68.40, 332.16°)
OKLaboklab(58.38% 0.1746 -0.0873)
OKLCHoklch(58.38% 0.195 333.4)
XYZxyz(29.7925, 17.4038, 40.3103)
Luminance0.1740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42AB #42BB52
analogous
#8F42BB #BB42AB #BB426F
triadic
#BB42AB #ABBB42 #42ABBB
tetradic
#BB42AB #BB8F42 #42BB52 #426FBB
square
#BB42AB #BB8F42 #42BB52 #426FBB
split-complementary
#BB42AB #6FBB42 #42BB8F
monochromatic
#612258 #8E3282 #BB42AB #CC6EC0 #DC9CD3

Accessibility & contrast

On white

4.69
#BB42AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BB42AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB42AB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42AB#FFFFFF#000000##FFFFFF
##BB42AB1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F69AE
Deuteranopia (green-blind)
#677AA8
Tritanopia (blue-blind)
#C34C71
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb42ab;
/* rgb */ color: rgb(187, 66, 171);
/* oklch */ color: oklch(58.4% 0.195 333.4);
Tailwind
colors: {
  custom: {
    50: '#d37fc4',
    500: '#bb42ab',
    950: '#000000',
  },
}
SCSS
$custom: #bb42ab;
$custom-light: #d37fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42ab",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 307.934,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5838,
    "c": 0.1952,
    "h": 333.4
  },
  "luminance": 0.17401
}

Semantic roles & 50–950 ramp

primary
#BB42AB
secondary
#91C898
accent
#D76250
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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