#BB42B6#BB42B6

#BB42B6 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 58.9% C 0.204 H 329.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BB42B6
RGBrgb(187, 66, 182)
HSLhsl(302, 48%, 50%)
HSVhsv(302, 65%, 73%)
CMYKcmyk(0%, 64.7%, 2.7%, 26.7%)
CIE-LABlab(49.30, 62.27, -37.55)
CIE-LCHlch(49.30, 72.72, 328.91°)
OKLaboklab(58.95% 0.1756 -0.1034)
OKLCHoklch(58.95% 0.204 329.5)
XYZxyz(30.8850, 17.8408, 46.0638)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42B6 #42BB47
analogous
#8342BB #BB42B6 #BB427A
triadic
#BB42B6 #B6BB42 #42B6BB
tetradic
#BB42B6 #BB8342 #42BB47 #427ABB
square
#BB42B6 #BB8342 #42BB47 #427ABB
split-complementary
#BB42B6 #7ABB42 #42BB83
monochromatic
#61225E #8E328A #BB42B6 #CC6EC8 #DC9CD9

Accessibility & contrast

On white

4.60
#BB42B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#BB42B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BB42B6
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42B6#FFFFFF#000000##FFFFFF
##BB42B61.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366BB9
Deuteranopia (green-blind)
#627BB3
Tritanopia (blue-blind)
#C15076
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #bb42b6;
/* rgb */ color: rgb(187, 66, 182);
/* oklch */ color: oklch(58.9% 0.204 329.5);
Tailwind
colors: {
  custom: {
    50: '#d37fcc',
    500: '#bb42b6',
    950: '#000000',
  },
}
SCSS
$custom: #bb42b6;
$custom-light: #d37fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42b6",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 302.479,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58945,
    "c": 0.20379,
    "h": 329.5
  },
  "luminance": 0.17839
}

Semantic roles & 50–950 ramp

primary
#BB42B6
secondary
#91C893
accent
#D75650
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BB42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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