#BB42E2#BB42E2

#BB42E2 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.5% C 0.241 H 316.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BB42E2
RGBrgb(187, 66, 226)
HSLhsl(285, 73%, 57%)
HSVhsv(285, 71%, 89%)
CMYKcmyk(17.3%, 70.8%, 0%, 11.4%)
CIE-LABlab(51.78, 70.15, -58.88)
CIE-LCHlch(51.78, 91.58, 319.99°)
OKLaboklab(61.53% 0.1749 -0.1656)
OKLCHoklch(61.53% 0.241 316.6)
XYZxyz(36.1671, 19.9537, 73.8831)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42E2 #69E242
analogous
#6B42E2 #BB42E2 #E242B9
triadic
#BB42E2 #E2BB42 #42E2BB
tetradic
#BB42E2 #E26B42 #69E242 #42B9E2
square
#BB42E2 #E26B42 #69E242 #42B9E2
split-complementary
#BB42E2 #B9E242 #42E26B
monochromatic
#751793 #9F1FC8 #BB42E2 #CE77EA #E1ACF2

Accessibility & contrast

On white

4.21
#BB42E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BB42E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42E2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42E2#FFFFFF#000000##000000
##BB42E21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#437FDE
Tritanopia (blue-blind)
#B9638E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bb42e2;
/* rgb */ color: rgb(187, 66, 226);
/* oklch */ color: oklch(61.5% 0.241 316.6);
Tailwind
colors: {
  custom: {
    50: '#d481ec',
    500: '#bb42e2',
    950: '#000000',
  },
}
SCSS
$custom: #bb42e2;
$custom-light: #d481ec;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42e2",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 285.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61527,
    "c": 0.2409,
    "h": 316.6
  },
  "luminance": 0.19952
}

Semantic roles & 50–950 ramp

primary
#BB42E2
secondary
#AFE09F
accent
#F03865
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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