#BB42CB#BB42CB

#BB42CB is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.1% C 0.221 H 322.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BB42CB
RGBrgb(187, 66, 203)
HSLhsl(293, 57%, 53%)
HSVhsv(293, 67%, 80%)
CMYKcmyk(7.9%, 67.5%, 0%, 20.4%)
CIE-LABlab(50.42, 65.90, -47.94)
CIE-LCHlch(50.42, 81.49, 323.96°)
OKLaboklab(60.12% 0.1762 -0.1336)
OKLCHoklch(60.12% 0.221 322.8)
XYZxyz(33.2202, 18.7749, 58.3625)
Luminance0.1877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42CB #52CB42
analogous
#7742CB #BB42CB #CB4296
triadic
#BB42CB #CBBB42 #42CBBB
tetradic
#BB42CB #CB7742 #52CB42 #4296CB
square
#BB42CB #CB7742 #52CB42 #4296CB
split-complementary
#BB42CB #96CB42 #42CB77
monochromatic
#692073 #952DA3 #BB42CB #CC72D8 #DEA2E5

Accessibility & contrast

On white

4.42
#BB42CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BB42CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42CB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42CB#FFFFFF#000000##000000
##BB42CB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6FCF
Deuteranopia (green-blind)
#567DC8
Tritanopia (blue-blind)
#BE5982
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bb42cb;
/* rgb */ color: rgb(187, 66, 203);
/* oklch */ color: oklch(60.1% 0.221 322.8);
Tailwind
colors: {
  custom: {
    50: '#d380db',
    500: '#bb42cb',
    950: '#000000',
  },
}
SCSS
$custom: #bb42cb;
$custom-light: #d380db;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42cb",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 292.993,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60116,
    "c": 0.22111,
    "h": 322.8
  },
  "luminance": 0.18773
}

Semantic roles & 50–950 ramp

primary
#BB42CB
secondary
#9ED297
accent
#E04859
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BB42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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