#BB40B0#BB40B0

#BB40B0 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.4% C 0.202 H 331.6°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BB40B0
RGBrgb(187, 64, 176)
HSLhsl(305, 49%, 49%)
HSVhsv(305, 66%, 73%)
CMYKcmyk(0%, 65.8%, 5.9%, 26.7%)
CIE-LABlab(48.72, 62.08, -34.95)
CIE-LCHlch(48.72, 71.24, 330.62°)
OKLaboklab(58.43% 0.1774 -0.0959)
OKLCHoklch(58.43% 0.202 331.6)
XYZxyz(30.1634, 17.3685, 42.8297)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B0 #40BB4B
analogous
#8940BB #BB40B0 #BB4073
triadic
#BB40B0 #B0BB40 #40B0BB
tetradic
#BB40B0 #BB8940 #40BB4B #4073BB
square
#BB40B0 #BB8940 #40BB4B #4073BB
split-complementary
#BB40B0 #73BB40 #40BB89
monochromatic
#60215A #8D3085 #BB40B0 #CD6CC4 #DC99D6

Accessibility & contrast

On white

4.69
#BB40B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BB40B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B0
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B0#FFFFFF#000000##FFFFFF
##BB40B01.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3969B3
Deuteranopia (green-blind)
#647AAD
Tritanopia (blue-blind)
#C24C72
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #bb40b0;
/* rgb */ color: rgb(187, 64, 176);
/* oklch */ color: oklch(58.4% 0.202 331.6);
Tailwind
colors: {
  custom: {
    50: '#d37ec8',
    500: '#bb40b0',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b0;
$custom-light: #d37ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b0",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 305.366,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58427,
    "c": 0.20167,
    "h": 331.6
  },
  "luminance": 0.17366
}

Semantic roles & 50–950 ramp

primary
#BB40B0
secondary
#8FC894
accent
#D95C4F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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