#BB40B9#BB40B9

#BB40B9 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.9% C 0.209 H 328.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BB40B9
RGBrgb(187, 64, 185)
HSLhsl(301, 49%, 49%)
HSVhsv(301, 66%, 73%)
CMYKcmyk(0%, 65.8%, 1.1%, 26.7%)
CIE-LABlab(49.17, 63.56, -39.50)
CIE-LCHlch(49.17, 74.83, 328.14°)
OKLaboklab(58.9% 0.178 -0.1091)
OKLCHoklch(58.9% 0.209 328.5)
XYZxyz(31.0835, 17.7365, 47.6759)
Luminance0.1773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B9 #40BB42
analogous
#8040BB #BB40B9 #BB407B
triadic
#BB40B9 #B9BB40 #40B9BB
tetradic
#BB40B9 #BB8040 #40BB42 #407BBB
square
#BB40B9 #BB8040 #40BB42 #407BBB
split-complementary
#BB40B9 #7BBB40 #40BB80
monochromatic
#60215F #8D308C #BB40B9 #CD6CCB #DC99DB

Accessibility & contrast

On white

4.62
#BB40B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#BB40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B9
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B9#FFFFFF#000000##FFFFFF
##BB40B91.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316ABD
Deuteranopia (green-blind)
#607BB6
Tritanopia (blue-blind)
#C15077
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb40b9;
/* rgb */ color: rgb(187, 64, 185);
/* oklch */ color: oklch(58.9% 0.209 328.5);
Tailwind
colors: {
  custom: {
    50: '#d37ece',
    500: '#bb40b9',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b9;
$custom-light: #d37ece;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b9",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 300.976,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58903,
    "c": 0.20876,
    "h": 328.5
  },
  "luminance": 0.17734
}

Semantic roles & 50–950 ramp

primary
#BB40B9
secondary
#8FC890
accent
#D9514F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BB40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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