#BB40A7#BB40A7

#BB40A7 is a mid, vivid purple. Relative luminance 0.170; OKLCH L 58.0% C 0.195 H 334.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BB40A7
RGBrgb(187, 64, 167)
HSLhsl(310, 49%, 49%)
HSVhsv(310, 66%, 73%)
CMYKcmyk(0%, 65.8%, 10.7%, 26.7%)
CIE-LABlab(48.29, 60.66, -30.33)
CIE-LCHlch(48.29, 67.82, 333.44°)
OKLaboklab(57.97% 0.1764 -0.0827)
OKLCHoklch(57.97% 0.195 334.9)
XYZxyz(29.3022, 17.0240, 38.2944)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40A7 #40BB54
analogous
#9240BB #BB40A7 #BB406A
triadic
#BB40A7 #A7BB40 #40A7BB
tetradic
#BB40A7 #BB9240 #40BB54 #406ABB
square
#BB40A7 #BB9240 #40BB54 #406ABB
split-complementary
#BB40A7 #6ABB40 #40BB92
monochromatic
#602156 #8D307E #BB40A7 #CD6CBD #DC99D1

Accessibility & contrast

On white

4.77
#BB40A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BB40A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40A7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40A7#FFFFFF#000000##FFFFFF
##BB40A71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F67AA
Deuteranopia (green-blind)
#6879A4
Tritanopia (blue-blind)
#C4496E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb40a7;
/* rgb */ color: rgb(187, 64, 167);
/* oklch */ color: oklch(58.0% 0.195 334.9);
Tailwind
colors: {
  custom: {
    50: '#d37ec1',
    500: '#bb40a7',
    950: '#000000',
  },
}
SCSS
$custom: #bb40a7;
$custom-light: #d37ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40a7",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 309.756,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57974,
    "c": 0.19485,
    "h": 334.9
  },
  "luminance": 0.17022
}

Semantic roles & 50–950 ramp

primary
#BB40A7
secondary
#8FC898
accent
#D9664F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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