#BB40AB#BB40AB

#BB40AB is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.198 H 333.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BB40AB
RGBrgb(187, 64, 171)
HSLhsl(308, 49%, 49%)
HSVhsv(308, 66%, 73%)
CMYKcmyk(0%, 65.8%, 8.6%, 26.7%)
CIE-LABlab(48.48, 61.28, -32.39)
CIE-LCHlch(48.48, 69.32, 332.14°)
OKLaboklab(58.17% 0.1769 -0.0886)
OKLCHoklch(58.17% 0.198 333.4)
XYZxyz(29.6777, 17.1742, 40.2721)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40AB #40BB50
analogous
#8E40BB #BB40AB #BB406E
triadic
#BB40AB #ABBB40 #40ABBB
tetradic
#BB40AB #BB8E40 #40BB50 #406EBB
square
#BB40AB #BB8E40 #40BB50 #406EBB
split-complementary
#BB40AB #6EBB40 #40BB8E
monochromatic
#602158 #8D3081 #BB40AB #CD6CC0 #DC99D3

Accessibility & contrast

On white

4.74
#BB40AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BB40AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40AB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40AB#FFFFFF#000000##FFFFFF
##BB40AB1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AE
Deuteranopia (green-blind)
#667AA8
Tritanopia (blue-blind)
#C34A70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb40ab;
/* rgb */ color: rgb(187, 64, 171);
/* oklch */ color: oklch(58.2% 0.198 333.4);
Tailwind
colors: {
  custom: {
    50: '#d37ec4',
    500: '#bb40ab',
    950: '#000000',
  },
}
SCSS
$custom: #bb40ab;
$custom-light: #d37ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40ab",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 307.805,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58172,
    "c": 0.19785,
    "h": 333.4
  },
  "luminance": 0.17172
}

Semantic roles & 50–950 ramp

primary
#BB40AB
secondary
#8FC896
accent
#D9614F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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