#BB42C5#BB42C5

#BB42C5 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.8% C 0.216 H 324.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BB42C5
RGBrgb(187, 66, 197)
HSLhsl(295, 53%, 52%)
HSVhsv(295, 66%, 77%)
CMYKcmyk(5.1%, 66.5%, 0%, 22.7%)
CIE-LABlab(50.09, 64.83, -45.01)
CIE-LCHlch(50.09, 78.93, 325.23°)
OKLaboklab(59.77% 0.1762 -0.1251)
OKLCHoklch(59.77% 0.216 324.6)
XYZxyz(32.5190, 18.4944, 54.6694)
Luminance0.1849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42C5 #4CC542
analogous
#7A42C5 #BB42C5 #C5428E
triadic
#BB42C5 #C5BB42 #42C5BB
tetradic
#BB42C5 #C57A42 #4CC542 #428EC5
square
#BB42C5 #C57A42 #4CC542 #428EC5
split-complementary
#BB42C5 #8EC542 #42C57A
monochromatic
#66216C #922F9A #BB42C5 #CC71D3 #DDA0E2

Accessibility & contrast

On white

4.47
#BB42C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BB42C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42C5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42C5#FFFFFF#000000##000000
##BB42C51.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#256EC9
Deuteranopia (green-blind)
#5A7CC2
Tritanopia (blue-blind)
#BF567E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb42c5;
/* rgb */ color: rgb(187, 66, 197);
/* oklch */ color: oklch(59.8% 0.216 324.6);
Tailwind
colors: {
  custom: {
    50: '#d380d7',
    500: '#bb42c5',
    950: '#000000',
  },
}
SCSS
$custom: #bb42c5;
$custom-light: #d380d7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42c5",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 295.42,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5977,
    "c": 0.21607,
    "h": 324.6
  },
  "luminance": 0.18492
}

Semantic roles & 50–950 ramp

primary
#BB42C5
secondary
#99CE95
accent
#DC4B56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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