#BB38B7#BB38B7

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

Color values

HEX#BB38B7
RGBrgb(187, 56, 183)
HSLhsl(302, 54%, 48%)
HSVhsv(302, 70%, 73%)
CMYKcmyk(0%, 70.1%, 2.1%, 26.7%)
CIE-LABlab(48.03, 66.17, -40.15)
CIE-LCHlch(48.03, 77.40, 328.75°)
OKLaboklab(58.04% 0.1863 -0.1109)
OKLCHoklch(58.04% 0.217 329.2)
XYZxyz(30.4547, 16.8143, 46.4320)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B7 #38BB3C
analogous
#7D38BB #BB38B7 #BB3876
triadic
#BB38B7 #B7BB38 #38B7BB
tetradic
#BB38B7 #BB7D38 #38BB3C #3876BB
square
#BB38B7 #BB7D38 #38BB3C #3876BB
split-complementary
#BB38B7 #76BB38 #38BB7D
monochromatic
#5D1C5B #8C2A89 #BB38B7 #D061CC #DE90DB

Accessibility & contrast

On white

4.81
#BB38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BB38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38B7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B7#FFFFFF#000000##FFFFFF
##BB38B71.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BB
Deuteranopia (green-blind)
#5D78B4
Tritanopia (blue-blind)
#C14A74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bb38b7;
/* rgb */ color: rgb(187, 56, 183);
/* oklch */ color: oklch(58.0% 0.217 329.2);
Tailwind
colors: {
  custom: {
    50: '#d37bcd',
    500: '#bb38b7',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b7;
$custom-light: #d37bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b7",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 301.832,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58041,
    "c": 0.21681,
    "h": 329.2
  },
  "luminance": 0.16812
}

Semantic roles & 50–950 ramp

primary
#BB38B7
secondary
#86C888
accent
#DD4F4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BB38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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