#BB42DC#BB42DC

#BB42DC is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.1% C 0.236 H 318.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BB42DC
RGBrgb(187, 66, 220)
HSLhsl(287, 69%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(15%, 70%, 0%, 13.7%)
CIE-LABlab(51.42, 69.01, -56.07)
CIE-LCHlch(51.42, 88.92, 320.91°)
OKLaboklab(61.15% 0.1754 -0.1574)
OKLCHoklch(61.15% 0.236 318.1)
XYZxyz(35.3582, 19.6301, 69.6228)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42DC #63DC42
analogous
#6E42DC #BB42DC #DC42B0
triadic
#BB42DC #DCBB42 #42DCBB
tetradic
#BB42DC #DC6E42 #63DC42 #42B0DC
square
#BB42DC #DC6E42 #63DC42 #42B0DC
split-complementary
#BB42DC #B0DC42 #42DC6E
monochromatic
#721A8A #9D23BE #BB42DC #CE76E6 #E0A9EF

Accessibility & contrast

On white

4.26
#BB42DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#BB42DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42DC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42DC#FFFFFF#000000##000000
##BB42DC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#497ED8
Tritanopia (blue-blind)
#BA608B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #bb42dc;
/* rgb */ color: rgb(187, 66, 220);
/* oklch */ color: oklch(61.1% 0.236 318.1);
Tailwind
colors: {
  custom: {
    50: '#d381e8',
    500: '#bb42dc',
    950: '#000000',
  },
}
SCSS
$custom: #bb42dc;
$custom-light: #d381e8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42dc",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 287.143,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61146,
    "c": 0.23568,
    "h": 318.1
  },
  "luminance": 0.19629
}

Semantic roles & 50–950 ramp

primary
#BB42DC
secondary
#ABDD9D
accent
#EC3C62
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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