#BB38DB#BB38DB

#BB38DB is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.2% C 0.246 H 318.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BB38DB
RGBrgb(187, 56, 219)
HSLhsl(288, 69%, 54%)
HSVhsv(288, 74%, 86%)
CMYKcmyk(14.6%, 74.4%, 0%, 14.1%)
CIE-LABlab(50.11, 72.38, -57.60)
CIE-LCHlch(50.11, 92.50, 321.49°)
OKLaboklab(60.2% 0.1848 -0.1618)
OKLCHoklch(60.2% 0.246 318.8)
XYZxyz(34.6922, 18.5093, 68.7494)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38DB #58DB38
analogous
#6A38DB #BB38DB #DB38AA
triadic
#BB38DB #DBBB38 #38DBBB
tetradic
#BB38DB #DB6A38 #58DB38 #38AADB
square
#BB38DB #DB6A38 #58DB38 #38AADB
split-complementary
#BB38DB #AADB38 #38DB6A
monochromatic
#6C1781 #9821B5 #BB38DB #CD6CE4 #DEA0EE

Accessibility & contrast

On white

4.47
#BB38DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#BB38DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB38DB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38DB#FFFFFF#000000##000000
##BB38DB1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#427BD7
Tritanopia (blue-blind)
#BB5A88
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #bb38db;
/* rgb */ color: rgb(187, 56, 219);
/* oklch */ color: oklch(60.2% 0.246 318.8);
Tailwind
colors: {
  custom: {
    50: '#d47ce7',
    500: '#bb38db',
    950: '#000000',
  },
}
SCSS
$custom: #bb38db;
$custom-light: #d47ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38db",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 288.221,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60196,
    "c": 0.24563,
    "h": 318.8
  },
  "luminance": 0.18508
}

Semantic roles & 50–950 ramp

primary
#BB38DB
secondary
#A2DA95
accent
#EC3C5E
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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