#BB40A8#BB40A8

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

Color values

HEX#BB40A8
RGBrgb(187, 64, 168)
HSLhsl(309, 49%, 49%)
HSVhsv(309, 66%, 73%)
CMYKcmyk(0%, 65.8%, 10.2%, 26.7%)
CIE-LABlab(48.34, 60.81, -30.85)
CIE-LCHlch(48.34, 68.19, 333.10°)
OKLaboklab(58.02% 0.1766 -0.0842)
OKLCHoklch(58.02% 0.196 334.5)
XYZxyz(29.3950, 17.0611, 38.7831)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40A8 #40BB53
analogous
#9140BB #BB40A8 #BB406B
triadic
#BB40A8 #A8BB40 #40A8BB
tetradic
#BB40A8 #BB9140 #40BB53 #406BBB
square
#BB40A8 #BB9140 #40BB53 #406BBB
split-complementary
#BB40A8 #6BBB40 #40BB91
monochromatic
#602156 #8D307F #BB40A8 #CD6CBE #DC99D2

Accessibility & contrast

On white

4.76
#BB40A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#BB40A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40A8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40A8#FFFFFF#000000##FFFFFF
##BB40A81.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F67AB
Deuteranopia (green-blind)
#6879A5
Tritanopia (blue-blind)
#C4496E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb40a8;
/* rgb */ color: rgb(187, 64, 168);
/* oklch */ color: oklch(58.0% 0.196 334.5);
Tailwind
colors: {
  custom: {
    50: '#d37ec2',
    500: '#bb40a8',
    950: '#000000',
  },
}
SCSS
$custom: #bb40a8;
$custom-light: #d37ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40a8",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 309.268,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58023,
    "c": 0.1956,
    "h": 334.5
  },
  "luminance": 0.17059
}

Semantic roles & 50–950 ramp

primary
#BB40A8
secondary
#8FC898
accent
#D9644F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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