#BB38A2#BB38A2

#BB38A2 is a mid, highly saturated pink. Relative luminance 0.160; OKLCH L 56.9% C 0.201 H 336.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BB38A2
RGBrgb(187, 56, 162)
HSLhsl(311, 54%, 48%)
HSVhsv(311, 70%, 73%)
CMYKcmyk(0%, 70.1%, 13.4%, 26.7%)
CIE-LABlab(46.98, 62.92, -29.41)
CIE-LCHlch(46.98, 69.45, 334.95°)
OKLaboklab(56.95% 0.1848 -0.08)
OKLCHoklch(56.95% 0.201 336.6)
XYZxyz(28.4297, 16.0043, 35.7673)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB38A2 #38BB51
analogous
#9238BB #BB38A2 #BB3861
triadic
#BB38A2 #A2BB38 #38A2BB
tetradic
#BB38A2 #BB9238 #38BB51 #3861BB
square
#BB38A2 #BB9238 #38BB51 #3861BB
split-complementary
#BB38A2 #61BB38 #38BB92
monochromatic
#5D1C50 #8C2A79 #BB38A2 #D061BA #DE90CF

Accessibility & contrast

On white

5.00
#BB38A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BB38A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB38A2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB38A2#FFFFFF#000000##FFFFFF
##BB38A21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#66779F
Tritanopia (blue-blind)
#C54068
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bb38a2;
/* rgb */ color: rgb(187, 56, 162);
/* oklch */ color: oklch(56.9% 0.201 336.6);
Tailwind
colors: {
  custom: {
    50: '#d37abe',
    500: '#bb38a2',
    950: '#000000',
  },
}
SCSS
$custom: #bb38a2;
$custom-light: #d37abe;
$custom-dark: #000000;
JSON
{
  "hex": "#bb38a2",
  "rgb": {
    "r": 187,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 311.45,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56947,
    "c": 0.20133,
    "h": 336.6
  },
  "luminance": 0.16002
}

Semantic roles & 50–950 ramp

primary
#BB38A2
secondary
#86C893
accent
#DD674B
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BB38A2

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

Preview Lab → · Contrast checker → · Palette generator →

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