#BB40BC#BB40BC

#BB40BC is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.211 H 327.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BB40BC
RGBrgb(187, 64, 188)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 74%)
CMYKcmyk(0.5%, 66%, 0%, 26.3%)
CIE-LABlab(49.33, 64.06, -41.00)
CIE-LCHlch(49.33, 76.06, 327.38°)
OKLaboklab(59.07% 0.1781 -0.1134)
OKLCHoklch(59.07% 0.211 327.5)
XYZxyz(31.4036, 17.8645, 49.3614)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40BC #41BC40
analogous
#7D40BC #BB40BC #BC407F
triadic
#BB40BC #BCBB40 #40BCBB
tetradic
#BB40BC #BC7D40 #41BC40 #407FBC
square
#BB40BC #BC7D40 #41BC40 #407FBC
split-complementary
#BB40BC #7FBC40 #40BC7D
monochromatic
#602161 #8E308E #BB40BC #CC6CCD #DC9ADD

Accessibility & contrast

On white

4.59
#BB40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#BB40BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40BC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40BC#FFFFFF#000000##FFFFFF
##BB40BC1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6BC0
Deuteranopia (green-blind)
#5E7BB9
Tritanopia (blue-blind)
#C05179
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb40bc;
/* rgb */ color: rgb(187, 64, 188);
/* oklch */ color: oklch(59.1% 0.211 327.5);
Tailwind
colors: {
  custom: {
    50: '#d37fd0',
    500: '#bb40bc',
    950: '#000000',
  },
}
SCSS
$custom: #bb40bc;
$custom-light: #d37fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40bc",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 299.516,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.59067,
    "c": 0.21117,
    "h": 327.5
  },
  "luminance": 0.17862
}

Semantic roles & 50–950 ramp

primary
#BB40BC
secondary
#90C98F
accent
#D94F50
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BB40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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