#BB42A7#BB42A7

#BB42A7 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 58.2% C 0.192 H 334.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BB42A7
RGBrgb(187, 66, 167)
HSLhsl(310, 48%, 50%)
HSVhsv(310, 65%, 73%)
CMYKcmyk(0%, 64.7%, 10.7%, 26.7%)
CIE-LABlab(48.58, 59.86, -29.88)
CIE-LCHlch(48.58, 66.90, 333.47°)
OKLaboklab(58.18% 0.1741 -0.0814)
OKLCHoklch(58.18% 0.192 334.9)
XYZxyz(29.4170, 17.2536, 38.3327)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42A7 #42BB56
analogous
#9242BB #BB42A7 #BB426B
triadic
#BB42A7 #A7BB42 #42A7BB
tetradic
#BB42A7 #BB9242 #42BB56 #426BBB
square
#BB42A7 #BB9242 #42BB56 #426BBB
split-complementary
#BB42A7 #6BBB42 #42BB92
monochromatic
#612256 #8E327F #BB42A7 #CC6EBC #DC9CD1

Accessibility & contrast

On white

4.72
#BB42A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#BB42A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB42A7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42A7#FFFFFF#000000##FFFFFF
##BB42A71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4268AA
Deuteranopia (green-blind)
#697AA4
Tritanopia (blue-blind)
#C44A6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb42a7;
/* rgb */ color: rgb(187, 66, 167);
/* oklch */ color: oklch(58.2% 0.192 334.9);
Tailwind
colors: {
  custom: {
    50: '#d37fc1',
    500: '#bb42a7',
    950: '#000000',
  },
}
SCSS
$custom: #bb42a7;
$custom-light: #d37fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42a7",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 309.917,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58183,
    "c": 0.19218,
    "h": 334.9
  },
  "luminance": 0.17251
}

Semantic roles & 50–950 ramp

primary
#BB42A7
secondary
#91C89A
accent
#D76750
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #BB42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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