#BB38B0#BB38B0

#BB38B0 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.212 H 331.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BB38B0
RGBrgb(187, 56, 176)
HSLhsl(305, 54%, 48%)
HSVhsv(305, 70%, 73%)
CMYKcmyk(0%, 70.1%, 5.9%, 26.7%)
CIE-LABlab(47.66, 65.06, -36.62)
CIE-LCHlch(47.66, 74.65, 330.63°)
OKLaboklab(57.66% 0.186 -0.1007)
OKLCHoklch(57.66% 0.212 331.6)
XYZxyz(29.7442, 16.5301, 42.6899)
Luminance0.1653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B0 #38BB43
analogous
#8438BB #BB38B0 #BB386F
triadic
#BB38B0 #B0BB38 #38B0BB
tetradic
#BB38B0 #BB8438 #38BB43 #386FBB
square
#BB38B0 #BB8438 #38BB43 #386FBB
split-complementary
#BB38B0 #6FBB38 #38BB84
monochromatic
#5D1C57 #8C2A84 #BB38B0 #D061C6 #DE90D7

Accessibility & contrast

On white

4.88
#BB38B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BB38B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38B0
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B0#FFFFFF#000000##FFFFFF
##BB38B01.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B3
Deuteranopia (green-blind)
#6078AD
Tritanopia (blue-blind)
#C34670
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb38b0;
/* rgb */ color: rgb(187, 56, 176);
/* oklch */ color: oklch(57.7% 0.212 331.6);
Tailwind
colors: {
  custom: {
    50: '#d37ac8',
    500: '#bb38b0',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b0;
$custom-light: #d37ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b0",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 305.038,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57662,
    "c": 0.21151,
    "h": 331.6
  },
  "luminance": 0.16528
}

Semantic roles & 50–950 ramp

primary
#BB38B0
secondary
#86C88C
accent
#DD574B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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