#BB38C2#BB38C2

#BB38C2 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.225 H 325.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BB38C2
RGBrgb(187, 56, 194)
HSLhsl(297, 55%, 49%)
HSVhsv(297, 71%, 76%)
CMYKcmyk(3.6%, 71.1%, 0%, 23.9%)
CIE-LABlab(48.62, 67.99, -45.61)
CIE-LCHlch(48.62, 81.87, 326.15°)
OKLaboklab(58.66% 0.1864 -0.1267)
OKLCHoklch(58.66% 0.225 325.8)
XYZxyz(31.6446, 17.2903, 52.6991)
Luminance0.1729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38C2 #3FC238
analogous
#7638C2 #BB38C2 #C23884
triadic
#BB38C2 #C2BB38 #38C2BB
tetradic
#BB38C2 #C27638 #3FC238 #3884C2
square
#BB38C2 #C27638 #3FC238 #3884C2
split-complementary
#BB38C2 #84C238 #38C276
monochromatic
#5F1D63 #8D2A93 #BB38C2 #CD65D2 #DC94E0

Accessibility & contrast

On white

4.71
#BB38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BB38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38C2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38C2#FFFFFF#000000##FFFFFF
##BB38C21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1469C6
Deuteranopia (green-blind)
#5679BF
Tritanopia (blue-blind)
#C04F7A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bb38c2;
/* rgb */ color: rgb(187, 56, 194);
/* oklch */ color: oklch(58.7% 0.225 325.8);
Tailwind
colors: {
  custom: {
    50: '#d37bd5',
    500: '#bb38c2',
    950: '#000000',
  },
}
SCSS
$custom: #bb38c2;
$custom-light: #d37bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38c2",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 296.957,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58663,
    "c": 0.2254,
    "h": 325.8
  },
  "luminance": 0.17288
}

Semantic roles & 50–950 ramp

primary
#BB38C2
secondary
#8ECB8A
accent
#DF4951
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BB38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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