#BB42DB#BB42DB

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

Color values

HEX#BB42DB
RGBrgb(187, 66, 219)
HSLhsl(287, 68%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(14.6%, 69.9%, 0%, 14.1%)
CIE-LABlab(51.36, 68.83, -55.60)
CIE-LCHlch(51.36, 88.48, 321.07°)
OKLaboklab(61.08% 0.1755 -0.156)
OKLCHoklch(61.08% 0.235 318.4)
XYZxyz(35.2262, 19.5773, 68.9274)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42DB #62DB42
analogous
#6E42DB #BB42DB #DB42AE
triadic
#BB42DB #DBBB42 #42DBBB
tetradic
#BB42DB #DB6E42 #62DB42 #42AEDB
square
#BB42DB #DB6E42 #62DB42 #42AEDB
split-complementary
#BB42DB #AEDB42 #42DB6E
monochromatic
#711A89 #9C24BC #BB42DB #CD75E5 #E0A9EF

Accessibility & contrast

On white

4.27
#BB42DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#BB42DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42DB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42DB#FFFFFF#000000##000000
##BB42DB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#4A7ED7
Tritanopia (blue-blind)
#BA608A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #bb42db;
/* rgb */ color: rgb(187, 66, 219);
/* oklch */ color: oklch(61.1% 0.235 318.4);
Tailwind
colors: {
  custom: {
    50: '#d381e7',
    500: '#bb42db',
    950: '#000000',
  },
}
SCSS
$custom: #bb42db;
$custom-light: #d381e7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42db",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 287.451,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61084,
    "c": 0.23481,
    "h": 318.4
  },
  "luminance": 0.19576
}

Semantic roles & 50–950 ramp

primary
#BB42DB
secondary
#AADC9D
accent
#EB3D61
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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