#BB40BD#BB40BD

#BB40BD is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.212 H 327.2°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#BB40BD
RGBrgb(187, 64, 189)
HSLhsl(299, 49%, 50%)
HSVhsv(299, 66%, 74%)
CMYKcmyk(1.1%, 66.1%, 0%, 25.9%)
CIE-LABlab(49.38, 64.23, -41.50)
CIE-LCHlch(49.38, 76.47, 327.13°)
OKLaboklab(59.12% 0.1782 -0.1149)
OKLCHoklch(59.12% 0.212 327.2)
XYZxyz(31.5117, 17.9078, 49.9311)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40BD #42BD40
analogous
#7D40BD #BB40BD #BD4081
triadic
#BB40BD #BDBB40 #40BDBB
tetradic
#BB40BD #BD7D40 #42BD40 #4081BD
square
#BB40BD #BD7D40 #42BD40 #4081BD
split-complementary
#BB40BD #81BD40 #40BD7D
monochromatic
#612162 #8E318F #BB40BD #CC6DCD #DC9ADD

Accessibility & contrast

On white

4.58
#BB40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#BB40BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB40BD
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40BD#FFFFFF#000000##000000
##BB40BD1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BC1
Deuteranopia (green-blind)
#5D7BBA
Tritanopia (blue-blind)
#C05279
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb40bd;
/* rgb */ color: rgb(187, 64, 189);
/* oklch */ color: oklch(59.1% 0.212 327.2);
Tailwind
colors: {
  custom: {
    50: '#d37fd1',
    500: '#bb40bd',
    950: '#000000',
  },
}
SCSS
$custom: #bb40bd;
$custom-light: #d37fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40bd",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 299.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59122,
    "c": 0.21198,
    "h": 327.2
  },
  "luminance": 0.17906
}

Semantic roles & 50–950 ramp

primary
#BB40BD
secondary
#91C990
accent
#D94F51
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BB40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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