#BB40A2#BB40A2

#BB40A2 is a mid, vivid pink. Relative luminance 0.168; OKLCH L 57.7% C 0.191 H 336.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BB40A2
RGBrgb(187, 64, 162)
HSLhsl(312, 49%, 49%)
HSVhsv(312, 66%, 73%)
CMYKcmyk(0%, 65.8%, 13.4%, 26.7%)
CIE-LABlab(48.06, 59.90, -27.73)
CIE-LCHlch(48.06, 66.00, 335.16°)
OKLaboklab(57.73% 0.1758 -0.0753)
OKLCHoklch(57.73% 0.191 336.8)
XYZxyz(28.8489, 16.8427, 35.9070)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB40A2 #40BB59
analogous
#9740BB #BB40A2 #BB4065
triadic
#BB40A2 #A2BB40 #40A2BB
tetradic
#BB40A2 #BB9740 #40BB59 #4065BB
square
#BB40A2 #BB9740 #40BB59 #4065BB
split-complementary
#BB40A2 #65BB40 #40BB97
monochromatic
#602153 #8D307B #BB40A2 #CD6CB9 #DC99CF

Accessibility & contrast

On white

4.81
#BB40A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BB40A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB40A2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB40A2#FFFFFF#000000##FFFFFF
##BB40A21.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4366A5
Deuteranopia (green-blind)
#6A799F
Tritanopia (blue-blind)
#C5466B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bb40a2;
/* rgb */ color: rgb(187, 64, 162);
/* oklch */ color: oklch(57.7% 0.191 336.8);
Tailwind
colors: {
  custom: {
    50: '#d37ebe',
    500: '#bb40a2',
    950: '#000000',
  },
}
SCSS
$custom: #bb40a2;
$custom-light: #d37ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#bb40a2",
  "rgb": {
    "r": 187,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 312.195,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57733,
    "c": 0.1912,
    "h": 336.8
  },
  "luminance": 0.1684
}

Semantic roles & 50–950 ramp

primary
#BB40A2
secondary
#8FC89A
accent
#D96B4F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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