#BB38B1#BB38B1

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

Color values

HEX#BB38B1
RGBrgb(187, 56, 177)
HSLhsl(305, 54%, 48%)
HSVhsv(305, 70%, 73%)
CMYKcmyk(0%, 70.1%, 5.3%, 26.7%)
CIE-LABlab(47.71, 65.21, -37.13)
CIE-LCHlch(47.71, 75.04, 330.35°)
OKLaboklab(57.72% 0.1861 -0.1021)
OKLCHoklch(57.72% 0.212 331.2)
XYZxyz(29.8435, 16.5698, 43.2129)
Luminance0.1657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B1 #38BB42
analogous
#8338BB #BB38B1 #BB3870
triadic
#BB38B1 #B1BB38 #38B1BB
tetradic
#BB38B1 #BB8338 #38BB42 #3870BB
square
#BB38B1 #BB8338 #38BB42 #3870BB
split-complementary
#BB38B1 #70BB38 #38BB83
monochromatic
#5D1C58 #8C2A84 #BB38B1 #D061C7 #DE90D8

Accessibility & contrast

On white

4.87
#BB38B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BB38B1
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B1#FFFFFF#000000##FFFFFF
##BB38B11.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B4
Deuteranopia (green-blind)
#6078AE
Tritanopia (blue-blind)
#C24770
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb38b1;
/* rgb */ color: rgb(187, 56, 177);
/* oklch */ color: oklch(57.7% 0.212 331.2);
Tailwind
colors: {
  custom: {
    50: '#d37ac9',
    500: '#bb38b1',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b1;
$custom-light: #d37ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b1",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 304.58,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57715,
    "c": 0.21225,
    "h": 331.2
  },
  "luminance": 0.16567
}

Semantic roles & 50–950 ramp

primary
#BB38B1
secondary
#86C88B
accent
#DD564B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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