#BB38B4#BB38B4

#BB38B4 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.215 H 330.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BB38B4
RGBrgb(187, 56, 180)
HSLhsl(303, 54%, 48%)
HSVhsv(303, 70%, 73%)
CMYKcmyk(0%, 70.1%, 3.7%, 26.7%)
CIE-LABlab(47.87, 65.69, -38.64)
CIE-LCHlch(47.87, 76.21, 329.53°)
OKLaboklab(57.88% 0.1862 -0.1065)
OKLCHoklch(57.88% 0.215 330.2)
XYZxyz(30.1458, 16.6907, 44.8051)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38B4 #38BB3F
analogous
#8038BB #BB38B4 #BB3873
triadic
#BB38B4 #B4BB38 #38B4BB
tetradic
#BB38B4 #BB8038 #38BB3F #3873BB
square
#BB38B4 #BB8038 #38BB3F #3873BB
split-complementary
#BB38B4 #73BB38 #38BB80
monochromatic
#5D1C59 #8C2A87 #BB38B4 #D061CA #DE90DA

Accessibility & contrast

On white

4.84
#BB38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BB38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38B4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38B4#FFFFFF#000000##FFFFFF
##BB38B41.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B7
Deuteranopia (green-blind)
#5E78B1
Tritanopia (blue-blind)
#C24872
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bb38b4;
/* rgb */ color: rgb(187, 56, 180);
/* oklch */ color: oklch(57.9% 0.215 330.2);
Tailwind
colors: {
  custom: {
    50: '#d37acb',
    500: '#bb38b4',
    950: '#000000',
  },
}
SCSS
$custom: #bb38b4;
$custom-light: #d37acb;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38b4",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 303.206,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.21453,
    "h": 330.2
  },
  "luminance": 0.16688
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BB38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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