#BB42D9#BB42D9

#BB42D9 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.0% C 0.233 H 318.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BB42D9
RGBrgb(187, 66, 217)
HSLhsl(288, 67%, 55%)
HSVhsv(288, 70%, 85%)
CMYKcmyk(13.8%, 69.6%, 0%, 14.9%)
CIE-LABlab(51.24, 68.45, -54.65)
CIE-LCHlch(51.24, 87.59, 321.40°)
OKLaboklab(60.96% 0.1756 -0.1532)
OKLCHoklch(60.96% 0.233 318.9)
XYZxyz(34.9645, 19.4726, 67.5490)
Luminance0.1947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42D9 #60D942
analogous
#6F42D9 #BB42D9 #D942AC
triadic
#BB42D9 #D9BB42 #42D9BB
tetradic
#BB42D9 #D96F42 #60D942 #42ACD9
square
#BB42D9 #D96F42 #60D942 #42ACD9
split-complementary
#BB42D9 #ACD942 #42D96F
monochromatic
#701B86 #9B25B9 #BB42D9 #CD75E3 #E0A8ED

Accessibility & contrast

On white

4.29
#BB42D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#BB42D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42D9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42D9#FFFFFF#000000##000000
##BB42D91.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#4B7ED5
Tritanopia (blue-blind)
#BB5F89
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #bb42d9;
/* rgb */ color: rgb(187, 66, 217);
/* oklch */ color: oklch(61.0% 0.233 318.9);
Tailwind
colors: {
  custom: {
    50: '#d380e5',
    500: '#bb42d9',
    950: '#000000',
  },
}
SCSS
$custom: #bb42d9;
$custom-light: #d380e5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42d9",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 288.079,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60959,
    "c": 0.23309,
    "h": 318.9
  },
  "luminance": 0.19471
}

Semantic roles & 50–950 ramp

primary
#BB42D9
secondary
#A8DB9C
accent
#E93E60
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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