#BB40B8#BB40B8

#BB40B8 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 58.8% C 0.208 H 328.8°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BB40B8
RGBrgb(187, 64, 184)
HSLhsl(301, 49%, 49%)
HSVhsv(301, 66%, 73%)
CMYKcmyk(0%, 65.8%, 1.6%, 26.7%)
CIE-LABlab(49.12, 63.39, -39.00)
CIE-LCHlch(49.12, 74.42, 328.40°)
OKLaboklab(58.85% 0.1779 -0.1076)
OKLCHoklch(58.85% 0.208 328.8)
XYZxyz(30.9783, 17.6945, 47.1218)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40B8 #40BB43
analogous
#8040BB #BB40B8 #BB407B
triadic
#BB40B8 #B8BB40 #40B8BB
tetradic
#BB40B8 #BB8040 #40BB43 #407BBB
square
#BB40B8 #BB8040 #40BB43 #407BBB
split-complementary
#BB40B8 #7BBB40 #40BB80
monochromatic
#60215E #8D308B #BB40B8 #CD6CCA #DC99DB

Accessibility & contrast

On white

4.63
#BB40B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BB40B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40B8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40B8#FFFFFF#000000##FFFFFF
##BB40B81.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326ABB
Deuteranopia (green-blind)
#607BB5
Tritanopia (blue-blind)
#C15077
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb40b8;
/* rgb */ color: rgb(187, 64, 184);
/* oklch */ color: oklch(58.8% 0.208 328.8);
Tailwind
colors: {
  custom: {
    50: '#d37ece',
    500: '#bb40b8',
    950: '#000000',
  },
}
SCSS
$custom: #bb40b8;
$custom-light: #d37ece;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40b8",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 301.463,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58849,
    "c": 0.20796,
    "h": 328.8
  },
  "luminance": 0.17692
}

Semantic roles & 50–950 ramp

primary
#BB40B8
secondary
#8FC890
accent
#D9534F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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