#BB40A1#BB40A1

#BB40A1 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.7% C 0.190 H 337.2°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BB40A1
RGBrgb(187, 64, 161)
HSLhsl(313, 49%, 49%)
HSVhsv(313, 66%, 73%)
CMYKcmyk(0%, 65.8%, 13.9%, 26.7%)
CIE-LABlab(48.02, 59.75, -27.20)
CIE-LCHlch(48.02, 65.65, 335.52°)
OKLaboklab(57.68% 0.1756 -0.0738)
OKLCHoklch(57.68% 0.19 337.2)
XYZxyz(28.7604, 16.8073, 35.4407)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40A1 #40BB5A
analogous
#9840BB #BB40A1 #BB4064
triadic
#BB40A1 #A1BB40 #40A1BB
tetradic
#BB40A1 #BB9840 #40BB5A #4064BB
square
#BB40A1 #BB9840 #40BB5A #4064BB
split-complementary
#BB40A1 #64BB40 #40BB98
monochromatic
#602152 #8D307A #BB40A1 #CD6CB8 #DC99CE

Accessibility & contrast

On white

4.82
#BB40A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BB40A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40A1
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40A1#FFFFFF#000000##FFFFFF
##BB40A11.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A4
Deuteranopia (green-blind)
#6A799E
Tritanopia (blue-blind)
#C5466B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bb40a1;
/* rgb */ color: rgb(187, 64, 161);
/* oklch */ color: oklch(57.7% 0.190 337.2);
Tailwind
colors: {
  custom: {
    50: '#d37ebd',
    500: '#bb40a1',
    950: '#000000',
  },
}
SCSS
$custom: #bb40a1;
$custom-light: #d37ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40a1",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 312.683,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57685,
    "c": 0.19048,
    "h": 337.2
  },
  "luminance": 0.16805
}

Semantic roles & 50–950 ramp

primary
#BB40A1
secondary
#8FC89B
accent
#D96C4F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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