#BB38B6#BB38B6

#BB38B6 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.0% C 0.216 H 329.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#BB38B6
RGBrgb(187, 56, 182)
HSLhsl(302, 54%, 48%)
HSVhsv(302, 70%, 73%)
CMYKcmyk(0%, 70.1%, 2.7%, 26.7%)
CIE-LABlab(47.97, 66.01, -39.65)
CIE-LCHlch(47.97, 77.00, 329.01°)
OKLaboklab(57.99% 0.1863 -0.1094)
OKLCHoklch(57.99% 0.216 329.6)
XYZxyz(30.3510, 16.7728, 45.8858)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B6 #38BB3D
analogous
#7E38BB #BB38B6 #BB3875
triadic
#BB38B6 #B6BB38 #38B6BB
tetradic
#BB38B6 #BB7E38 #38BB3D #3875BB
square
#BB38B6 #BB7E38 #38BB3D #3875BB
split-complementary
#BB38B6 #75BB38 #38BB7E
monochromatic
#5D1C5A #8C2A88 #BB38B6 #D061CB #DE90DB

Accessibility & contrast

On white

4.82
#BB38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BB38B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38B6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B6#FFFFFF#000000##FFFFFF
##BB38B61.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2867BA
Deuteranopia (green-blind)
#5D78B3
Tritanopia (blue-blind)
#C24973
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bb38b6;
/* rgb */ color: rgb(187, 56, 182);
/* oklch */ color: oklch(58.0% 0.216 329.6);
Tailwind
colors: {
  custom: {
    50: '#d37bcc',
    500: '#bb38b6',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b6;
$custom-light: #d37bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b6",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 302.29,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57986,
    "c": 0.21605,
    "h": 329.6
  },
  "luminance": 0.16771
}

Semantic roles & 50–950 ramp

primary
#BB38B6
secondary
#86C889
accent
#DD504B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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