#BB40A9#BB40A9

#BB40A9 is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.1% C 0.196 H 334.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BB40A9
RGBrgb(187, 64, 169)
HSLhsl(309, 49%, 49%)
HSVhsv(309, 66%, 73%)
CMYKcmyk(0%, 65.8%, 9.6%, 26.7%)
CIE-LABlab(48.38, 60.97, -31.36)
CIE-LCHlch(48.38, 68.56, 332.78°)
OKLaboklab(58.07% 0.1767 -0.0856)
OKLCHoklch(58.07% 0.196 334.1)
XYZxyz(29.4885, 17.0985, 39.2757)
Luminance0.1710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40A9 #40BB52
analogous
#8F40BB #BB40A9 #BB406C
triadic
#BB40A9 #A9BB40 #40A9BB
tetradic
#BB40A9 #BB8F40 #40BB52 #406CBB
square
#BB40A9 #BB8F40 #40BB52 #406CBB
split-complementary
#BB40A9 #6CBB40 #40BB8F
monochromatic
#602157 #8D3080 #BB40A9 #CD6CBE #DC99D2

Accessibility & contrast

On white

4.75
#BB40A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BB40A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40A9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40A9#FFFFFF#000000##FFFFFF
##BB40A91.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E67AC
Deuteranopia (green-blind)
#6779A6
Tritanopia (blue-blind)
#C4496F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb40a9;
/* rgb */ color: rgb(187, 64, 169);
/* oklch */ color: oklch(58.1% 0.196 334.1);
Tailwind
colors: {
  custom: {
    50: '#d37ec3',
    500: '#bb40a9',
    950: '#000000',
  },
}
SCSS
$custom: #bb40a9;
$custom-light: #d37ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40a9",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 308.78,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58073,
    "c": 0.19634,
    "h": 334.1
  },
  "luminance": 0.17096
}

Semantic roles & 50–950 ramp

primary
#BB40A9
secondary
#8FC897
accent
#D9634F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40A9

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

Preview Lab → · Contrast checker → · Palette generator →

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