#BB42E6#BB42E6

#BB42E6 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.244 H 315.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BB42E6
RGBrgb(187, 66, 230)
HSLhsl(284, 77%, 58%)
HSVhsv(284, 71%, 90%)
CMYKcmyk(18.7%, 71.3%, 0%, 9.8%)
CIE-LABlab(52.04, 70.91, -60.73)
CIE-LCHlch(52.04, 93.37, 319.42°)
OKLaboklab(61.79% 0.1746 -0.171)
OKLCHoklch(61.79% 0.244 315.6)
XYZxyz(36.7224, 20.1758, 76.8075)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB42E6 #6DE642
analogous
#6942E6 #BB42E6 #E642BF
triadic
#BB42E6 #E6BB42 #42E6BB
tetradic
#BB42E6 #E66942 #6DE642 #42BFE6
square
#BB42E6 #E66942 #6DE642 #42BFE6
split-complementary
#BB42E6 #BFE642 #42E669
monochromatic
#761499 #A01BCF #BB42E6 #CE78ED #E2AEF4

Accessibility & contrast

On white

4.17
#BB42E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BB42E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB42E6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB42E6#FFFFFF#000000##000000
##BB42E61.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075EB
Deuteranopia (green-blind)
#3F7FE2
Tritanopia (blue-blind)
#B86490
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #bb42e6;
/* rgb */ color: rgb(187, 66, 230);
/* oklch */ color: oklch(61.8% 0.244 315.6);
Tailwind
colors: {
  custom: {
    50: '#d481ef',
    500: '#bb42e6',
    950: '#000000',
  },
}
SCSS
$custom: #bb42e6;
$custom-light: #d481ef;
$custom-dark: #000000;
JSON
{
  "hex": "#bb42e6",
  "rgb": {
    "r": 187,
    "g": 66,
    "b": 230
  },
  "hsl": {
    "h": 284.268,
    "s": 76.636,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61785,
    "c": 0.24439,
    "h": 315.6
  },
  "luminance": 0.20174
}

Semantic roles & 50–950 ramp

primary
#BB42E6
secondary
#B2E3A1
accent
#F33567
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB42E6

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

Preview Lab → · Contrast checker → · Palette generator →

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