#BB38B2#BB38B2

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

Color values

HEX#BB38B2
RGBrgb(187, 56, 178)
HSLhsl(304, 54%, 48%)
HSVhsv(304, 70%, 73%)
CMYKcmyk(0%, 70.1%, 4.8%, 26.7%)
CIE-LABlab(47.76, 65.37, -37.63)
CIE-LCHlch(47.76, 75.43, 330.07°)
OKLaboklab(57.77% 0.1861 -0.1036)
OKLCHoklch(57.77% 0.213 330.9)
XYZxyz(29.9435, 16.6098, 43.7398)
Luminance0.1661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B2 #38BB41
analogous
#8238BB #BB38B2 #BB3871
triadic
#BB38B2 #B2BB38 #38B2BB
tetradic
#BB38B2 #BB8238 #38BB41 #3871BB
square
#BB38B2 #BB8238 #38BB41 #3871BB
split-complementary
#BB38B2 #71BB38 #38BB82
monochromatic
#5D1C58 #8C2A85 #BB38B2 #D061C8 #DE90D8

Accessibility & contrast

On white

4.86
#BB38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BB38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38B2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B2#FFFFFF#000000##FFFFFF
##BB38B21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5F78AF
Tritanopia (blue-blind)
#C24771
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bb38b2;
/* rgb */ color: rgb(187, 56, 178);
/* oklch */ color: oklch(57.8% 0.213 330.9);
Tailwind
colors: {
  custom: {
    50: '#d37ac9',
    500: '#bb38b2',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b2;
$custom-light: #d37ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b2",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 304.122,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57769,
    "c": 0.213,
    "h": 330.9
  },
  "luminance": 0.16607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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