#BB42E1#BB42E1

#BB42E1 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.5% C 0.240 H 316.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BB42E1
RGBrgb(187, 66, 225)
HSLhsl(286, 73%, 57%)
HSVhsv(286, 71%, 88%)
CMYKcmyk(16.9%, 70.7%, 0%, 11.8%)
CIE-LABlab(51.72, 69.96, -58.41)
CIE-LCHlch(51.72, 91.14, 320.14°)
OKLaboklab(61.46% 0.175 -0.1642)
OKLCHoklch(61.46% 0.24 316.8)
XYZxyz(36.0303, 19.8989, 73.1625)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42E1 #68E142
analogous
#6B42E1 #BB42E1 #E142B8
triadic
#BB42E1 #E1BB42 #42E1BB
tetradic
#BB42E1 #E16B42 #68E142 #42B8E1
square
#BB42E1 #E16B42 #68E142 #42B8E1
split-complementary
#BB42E1 #B8E142 #42E16B
monochromatic
#741792 #9E1FC6 #BB42E1 #CE77E9 #E1ACF2

Accessibility & contrast

On white

4.22
#BB42E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#BB42E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42E1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42E1#FFFFFF#000000##000000
##BB42E11.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#447FDD
Tritanopia (blue-blind)
#B9628E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #bb42e1;
/* rgb */ color: rgb(187, 66, 225);
/* oklch */ color: oklch(61.5% 0.240 316.8);
Tailwind
colors: {
  custom: {
    50: '#d481eb',
    500: '#bb42e1',
    950: '#000000',
  },
}
SCSS
$custom: #bb42e1;
$custom-light: #d481eb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42e1",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 285.66,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61463,
    "c": 0.24002,
    "h": 316.8
  },
  "luminance": 0.19897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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