#BB40B7#BB40B7

#BB40B7 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.8% C 0.207 H 329.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BB40B7
RGBrgb(187, 64, 183)
HSLhsl(302, 49%, 49%)
HSVhsv(302, 66%, 73%)
CMYKcmyk(0%, 65.8%, 2.1%, 26.7%)
CIE-LABlab(49.07, 63.22, -38.50)
CIE-LCHlch(49.07, 74.02, 328.66°)
OKLaboklab(58.79% 0.1779 -0.1062)
OKLCHoklch(58.79% 0.207 329.2)
XYZxyz(30.8739, 17.6527, 46.5717)
Luminance0.1765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B7 #40BB44
analogous
#8240BB #BB40B7 #BB407A
triadic
#BB40B7 #B7BB40 #40B7BB
tetradic
#BB40B7 #BB8240 #40BB44 #407ABB
square
#BB40B7 #BB8240 #40BB44 #407ABB
split-complementary
#BB40B7 #7ABB40 #40BB82
monochromatic
#60215E #8D308A #BB40B7 #CD6CC9 #DC99DA

Accessibility & contrast

On white

4.64
#BB40B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BB40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B7#FFFFFF#000000##FFFFFF
##BB40B71.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336ABA
Deuteranopia (green-blind)
#617AB4
Tritanopia (blue-blind)
#C14F76
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb40b7;
/* rgb */ color: rgb(187, 64, 183);
/* oklch */ color: oklch(58.8% 0.207 329.2);
Tailwind
colors: {
  custom: {
    50: '#d37ecd',
    500: '#bb40b7',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b7;
$custom-light: #d37ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b7",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 301.951,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58795,
    "c": 0.20717,
    "h": 329.2
  },
  "luminance": 0.1765
}

Semantic roles & 50–950 ramp

primary
#BB40B7
secondary
#8FC891
accent
#D9544F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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