#BB42E3#BB42E3

#BB42E3 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.6% C 0.242 H 316.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BB42E3
RGBrgb(187, 66, 227)
HSLhsl(285, 74%, 57%)
HSVhsv(285, 71%, 89%)
CMYKcmyk(17.6%, 70.9%, 0%, 11%)
CIE-LABlab(51.85, 70.34, -59.34)
CIE-LCHlch(51.85, 92.03, 319.85°)
OKLaboklab(61.59% 0.1749 -0.167)
OKLCHoklch(61.59% 0.242 316.3)
XYZxyz(36.3047, 20.0087, 74.6078)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42E3 #6AE342
analogous
#6A42E3 #BB42E3 #E342BB
triadic
#BB42E3 #E3BB42 #42E3BB
tetradic
#BB42E3 #E36A42 #6AE342 #42BBE3
square
#BB42E3 #E36A42 #6AE342 #42BBE3
split-complementary
#BB42E3 #BBE342 #42E36A
monochromatic
#751695 #9F1ECA #BB42E3 #CE77EB #E1ADF3

Accessibility & contrast

On white

4.20
#BB42E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BB42E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42E3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42E3#FFFFFF#000000##000000
##BB42E31.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E8
Deuteranopia (green-blind)
#427FDF
Tritanopia (blue-blind)
#B9638F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bb42e3;
/* rgb */ color: rgb(187, 66, 227);
/* oklch */ color: oklch(61.6% 0.242 316.3);
Tailwind
colors: {
  custom: {
    50: '#d481ed',
    500: '#bb42e3',
    950: '#000000',
  },
}
SCSS
$custom: #bb42e3;
$custom-light: #d481ed;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42e3",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 227
  },
  "hsl": {
    "h": 285.093,
    "s": 74.194,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61591,
    "c": 0.24177,
    "h": 316.3
  },
  "luminance": 0.20007
}

Semantic roles & 50–950 ramp

primary
#BB42E3
secondary
#B0E1A0
accent
#F13765
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB42E3

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

Preview Lab → · Contrast checker → · Palette generator →

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