#BB38B3#BB38B3

#BB38B3 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.8% C 0.214 H 330.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BB38B3
RGBrgb(187, 56, 179)
HSLhsl(304, 54%, 48%)
HSVhsv(304, 70%, 73%)
CMYKcmyk(0%, 70.1%, 4.3%, 26.7%)
CIE-LABlab(47.82, 65.53, -38.14)
CIE-LCHlch(47.82, 75.82, 329.80°)
OKLaboklab(57.82% 0.1862 -0.1051)
OKLCHoklch(57.82% 0.214 330.6)
XYZxyz(30.0443, 16.6501, 44.2705)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B3 #38BB40
analogous
#8138BB #BB38B3 #BB3872
triadic
#BB38B3 #B3BB38 #38B3BB
tetradic
#BB38B3 #BB8138 #38BB40 #3872BB
square
#BB38B3 #BB8138 #38BB40 #3872BB
split-complementary
#BB38B3 #72BB38 #38BB81
monochromatic
#5D1C59 #8C2A86 #BB38B3 #D061C9 #DE90D9

Accessibility & contrast

On white

4.85
#BB38B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BB38B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38B3
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B3#FFFFFF#000000##FFFFFF
##BB38B31.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#5F78B0
Tritanopia (blue-blind)
#C24871
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb38b3;
/* rgb */ color: rgb(187, 56, 179);
/* oklch */ color: oklch(57.8% 0.214 330.6);
Tailwind
colors: {
  custom: {
    50: '#d37aca',
    500: '#bb38b3',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b3;
$custom-light: #d37aca;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b3",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 303.664,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.21376,
    "h": 330.6
  },
  "luminance": 0.16648
}

Semantic roles & 50–950 ramp

primary
#BB38B3
secondary
#86C88A
accent
#DD534B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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