#BB38E3#BB38E3

#BB38E3 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.7% C 0.252 H 316.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BB38E3
RGBrgb(187, 56, 227)
HSLhsl(286, 75%, 55%)
HSVhsv(286, 75%, 89%)
CMYKcmyk(17.6%, 75.3%, 0%, 11%)
CIE-LABlab(50.62, 73.85, -61.32)
CIE-LCHlch(50.62, 95.99, 320.29°)
OKLaboklab(60.72% 0.1838 -0.1727)
OKLCHoklch(60.72% 0.252 316.8)
XYZxyz(35.7707, 18.9407, 74.4298)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38E3 #60E338
analogous
#6538E3 #BB38E3 #E338B5
triadic
#BB38E3 #E3BB38 #38E3BB
tetradic
#BB38E3 #E36538 #60E338 #38B5E3
square
#BB38E3 #E36538 #60E338 #38B5E3
split-complementary
#BB38E3 #B5E338 #38E365
monochromatic
#70148D #9B1BC2 #BB38E3 #CD6EEB #E0A3F2

Accessibility & contrast

On white

4.39
#BB38E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#BB38E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BB38E3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38E3#FFFFFF#000000##000000
##BB38E31.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E8
Deuteranopia (green-blind)
#397CDF
Tritanopia (blue-blind)
#B95E8C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #bb38e3;
/* rgb */ color: rgb(187, 56, 227);
/* oklch */ color: oklch(60.7% 0.252 316.8);
Tailwind
colors: {
  custom: {
    50: '#d47ced',
    500: '#bb38e3',
    950: '#000000',
  },
}
SCSS
$custom: #bb38e3;
$custom-light: #d47ced;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38e3",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 227
  },
  "hsl": {
    "h": 285.965,
    "s": 75.33,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60719,
    "c": 0.25224,
    "h": 316.8
  },
  "luminance": 0.18939
}

Semantic roles & 50–950 ramp

primary
#BB38E3
secondary
#A8DF98
accent
#F23662
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BB38E3

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

Preview Lab → · Contrast checker → · Palette generator →

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