#BB42C7#BB42C7

#BB42C7 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.218 H 324.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BB42C7
RGBrgb(187, 66, 199)
HSLhsl(295, 54%, 52%)
HSVhsv(295, 67%, 78%)
CMYKcmyk(6%, 66.8%, 0%, 22%)
CIE-LABlab(50.20, 65.19, -45.99)
CIE-LCHlch(50.20, 79.78, 324.79°)
OKLaboklab(59.88% 0.1762 -0.1279)
OKLCHoklch(59.88% 0.218 324)
XYZxyz(32.7496, 18.5867, 55.8844)
Luminance0.1858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42C7 #4EC742
analogous
#7842C7 #BB42C7 #C74291
triadic
#BB42C7 #C7BB42 #42C7BB
tetradic
#BB42C7 #C77842 #4EC742 #4291C7
square
#BB42C7 #C77842 #4EC742 #4291C7
split-complementary
#BB42C7 #91C742 #42C778
monochromatic
#67216E #932F9D #BB42C7 #CC71D5 #DDA0E3

Accessibility & contrast

On white

4.45
#BB42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#BB42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42C7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42C7#FFFFFF#000000##000000
##BB42C71.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#226ECB
Deuteranopia (green-blind)
#597CC4
Tritanopia (blue-blind)
#BE577F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb42c7;
/* rgb */ color: rgb(187, 66, 199);
/* oklch */ color: oklch(59.9% 0.218 324.0);
Tailwind
colors: {
  custom: {
    50: '#d380d8',
    500: '#bb42c7',
    950: '#000000',
  },
}
SCSS
$custom: #bb42c7;
$custom-light: #d380d8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42c7",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 294.586,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59884,
    "c": 0.21774,
    "h": 324
  },
  "luminance": 0.18585
}

Semantic roles & 50–950 ramp

primary
#BB42C7
secondary
#9BD095
accent
#DE4A57
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BB42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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