#BB40A5#BB40A5

#BB40A5 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.9% C 0.193 H 335.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BB40A5
RGBrgb(187, 64, 165)
HSLhsl(311, 49%, 49%)
HSVhsv(311, 66%, 73%)
CMYKcmyk(0%, 65.8%, 11.8%, 26.7%)
CIE-LABlab(48.20, 60.35, -29.29)
CIE-LCHlch(48.20, 67.08, 334.11°)
OKLaboklab(57.88% 0.1762 -0.0797)
OKLCHoklch(57.88% 0.193 335.7)
XYZxyz(29.1188, 16.9506, 37.3282)
Luminance0.1695 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40A5 #40BB56
analogous
#9440BB #BB40A5 #BB4068
triadic
#BB40A5 #A5BB40 #40A5BB
tetradic
#BB40A5 #BB9440 #40BB56 #4068BB
square
#BB40A5 #BB9440 #40BB56 #4068BB
split-complementary
#BB40A5 #68BB40 #40BB94
monochromatic
#602155 #8D307D #BB40A5 #CD6CBB #DC99D0

Accessibility & contrast

On white

4.78
#BB40A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BB40A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40A5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40A5#FFFFFF#000000##FFFFFF
##BB40A51.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4167A8
Deuteranopia (green-blind)
#6979A2
Tritanopia (blue-blind)
#C4486D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bb40a5;
/* rgb */ color: rgb(187, 64, 165);
/* oklch */ color: oklch(57.9% 0.193 335.7);
Tailwind
colors: {
  custom: {
    50: '#d37ec0',
    500: '#bb40a5',
    950: '#000000',
  },
}
SCSS
$custom: #bb40a5;
$custom-light: #d37ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40a5",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 310.732,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.19338,
    "h": 335.7
  },
  "luminance": 0.16948
}

Semantic roles & 50–950 ramp

primary
#BB40A5
secondary
#8FC899
accent
#D9684F
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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