#BB40AC#BB40AC

#BB40AC is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.199 H 333.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BB40AC
RGBrgb(187, 64, 172)
HSLhsl(307, 49%, 49%)
HSVhsv(307, 66%, 73%)
CMYKcmyk(0%, 65.8%, 8%, 26.7%)
CIE-LABlab(48.53, 61.44, -32.91)
CIE-LCHlch(48.53, 69.70, 331.83°)
OKLaboklab(58.22% 0.177 -0.0901)
OKLCHoklch(58.22% 0.199 333)
XYZxyz(29.7734, 17.2125, 40.7759)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40AC #40BB4F
analogous
#8D40BB #BB40AC #BB406F
triadic
#BB40AC #ACBB40 #40ACBB
tetradic
#BB40AC #BB8D40 #40BB4F #406FBB
square
#BB40AC #BB8D40 #40BB4F #406FBB
split-complementary
#BB40AC #6FBB40 #40BB8D
monochromatic
#602158 #8D3082 #BB40AC #CD6CC1 #DC99D4

Accessibility & contrast

On white

4.73
#BB40AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BB40AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40AC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40AC#FFFFFF#000000##FFFFFF
##BB40AC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C68AF
Deuteranopia (green-blind)
#667AA9
Tritanopia (blue-blind)
#C34B70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb40ac;
/* rgb */ color: rgb(187, 64, 172);
/* oklch */ color: oklch(58.2% 0.199 333.0);
Tailwind
colors: {
  custom: {
    50: '#d37ec5',
    500: '#bb40ac',
    950: '#000000',
  },
}
SCSS
$custom: #bb40ac;
$custom-light: #d37ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40ac",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 307.317,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58223,
    "c": 0.1986,
    "h": 333
  },
  "luminance": 0.1721
}

Semantic roles & 50–950 ramp

primary
#BB40AC
secondary
#8FC896
accent
#D9604F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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