#BB42D6#BB42D6

#BB42D6 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.8% C 0.231 H 319.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BB42D6
RGBrgb(187, 66, 214)
HSLhsl(289, 64%, 55%)
HSVhsv(289, 69%, 84%)
CMYKcmyk(12.6%, 69.2%, 0%, 16.1%)
CIE-LABlab(51.06, 67.90, -53.23)
CIE-LCHlch(51.06, 86.27, 321.90°)
OKLaboklab(60.78% 0.1758 -0.1491)
OKLCHoklch(60.78% 0.231 319.7)
XYZxyz(34.5778, 19.3179, 65.5127)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42D6 #5DD642
analogous
#7142D6 #BB42D6 #D642A7
triadic
#BB42D6 #D6BB42 #42D6BB
tetradic
#BB42D6 #D67142 #5DD642 #42A7D6
square
#BB42D6 #D67142 #5DD642 #42A7D6
split-complementary
#BB42D6 #A7D642 #42D671
monochromatic
#6F1C82 #9A27B4 #BB42D6 #CD74E1 #DFA7EC

Accessibility & contrast

On white

4.32
#BB42D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#BB42D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42D6
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42D6#FFFFFF#000000##000000
##BB42D61.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#4E7ED3
Tritanopia (blue-blind)
#BB5E88
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #bb42d6;
/* rgb */ color: rgb(187, 66, 214);
/* oklch */ color: oklch(60.8% 0.231 319.7);
Tailwind
colors: {
  custom: {
    50: '#d380e3',
    500: '#bb42d6',
    950: '#000000',
  },
}
SCSS
$custom: #bb42d6;
$custom-light: #d380e3;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42d6",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 289.054,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60775,
    "c": 0.2305,
    "h": 319.7
  },
  "luminance": 0.19316
}

Semantic roles & 50–950 ramp

primary
#BB42D6
secondary
#A6D99B
accent
#E7405F
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #BB42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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