#BB40BB#BB40BB

#BB40BB is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.0% C 0.210 H 327.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BB40BB
RGBrgb(187, 64, 187)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0%, 65.8%, 0%, 26.7%)
CIE-LABlab(49.28, 63.89, -40.50)
CIE-LCHlch(49.28, 75.65, 327.63°)
OKLaboklab(59.01% 0.1781 -0.112)
OKLCHoklch(59.01% 0.21 327.8)
XYZxyz(31.2961, 17.8216, 48.7956)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40BB #40BB40
analogous
#7E40BB #BB40BB #BB407E
triadic
#BB40BB #BBBB40 #40BBBB
tetradic
#BB40BB #BB7E40 #40BB40 #407EBB
square
#BB40BB #BB7E40 #40BB40 #407EBB
split-complementary
#BB40BB #7EBB40 #40BB7E
monochromatic
#602160 #8D308D #BB40BB #CD6CCD #DC99DC

Accessibility & contrast

On white

4.60
#BB40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BB40BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40BB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40BB#FFFFFF#000000##FFFFFF
##BB40BB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BBF
Deuteranopia (green-blind)
#5F7BB8
Tritanopia (blue-blind)
#C15178
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb40bb;
/* rgb */ color: rgb(187, 64, 187);
/* oklch */ color: oklch(59.0% 0.210 327.8);
Tailwind
colors: {
  custom: {
    50: '#d37ed0',
    500: '#bb40bb',
    950: '#000000',
  },
}
SCSS
$custom: #bb40bb;
$custom-light: #d37ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40bb",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 300,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59012,
    "c": 0.21037,
    "h": 327.8
  },
  "luminance": 0.17819
}

Semantic roles & 50–950 ramp

primary
#BB40BB
secondary
#8FC88F
accent
#D94F4F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BB40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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