#BB40AA#BB40AA

#BB40AA is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.1% C 0.197 H 333.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#BB40AA
RGBrgb(187, 64, 170)
HSLhsl(308, 49%, 49%)
HSVhsv(308, 66%, 73%)
CMYKcmyk(0%, 65.8%, 9.1%, 26.7%)
CIE-LABlab(48.43, 61.13, -31.88)
CIE-LCHlch(48.43, 68.94, 332.46°)
OKLaboklab(58.12% 0.1768 -0.0871)
OKLCHoklch(58.12% 0.197 333.8)
XYZxyz(29.5828, 17.1362, 39.7720)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40AA #40BB51
analogous
#8F40BB #BB40AA #BB406D
triadic
#BB40AA #AABB40 #40AABB
tetradic
#BB40AA #BB8F40 #40BB51 #406DBB
square
#BB40AA #BB8F40 #40BB51 #406DBB
split-complementary
#BB40AA #6DBB40 #40BB8F
monochromatic
#602157 #8D3081 #BB40AA #CD6CBF #DC99D3

Accessibility & contrast

On white

4.74
#BB40AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BB40AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40AA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40AA#FFFFFF#000000##FFFFFF
##BB40AA1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AD
Deuteranopia (green-blind)
#6779A7
Tritanopia (blue-blind)
#C34A6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb40aa;
/* rgb */ color: rgb(187, 64, 170);
/* oklch */ color: oklch(58.1% 0.197 333.8);
Tailwind
colors: {
  custom: {
    50: '#d37ec3',
    500: '#bb40aa',
    950: '#000000',
  },
}
SCSS
$custom: #bb40aa;
$custom-light: #d37ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40aa",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 308.293,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58122,
    "c": 0.19709,
    "h": 333.8
  },
  "luminance": 0.17134
}

Semantic roles & 50–950 ramp

primary
#BB40AA
secondary
#8FC897
accent
#D9624F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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