#BB28C4#BB28C4

#BB28C4 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.6% C 0.242 H 325.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BB28C4
RGBrgb(187, 40, 196)
HSLhsl(297, 66%, 46%)
HSVhsv(297, 80%, 77%)
CMYKcmyk(4.6%, 79.6%, 0%, 23.1%)
CIE-LABlab(47.07, 73.13, -49.25)
CIE-LCHlch(47.07, 88.17, 326.04°)
OKLaboklab(57.59% 0.1996 -0.1373)
OKLCHoklch(57.59% 0.242 325.5)
XYZxyz(31.2154, 16.0700, 53.6715)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB28C4 #31C428
analogous
#6D28C4 #BB28C4 #C4287F
triadic
#BB28C4 #C4BB28 #28C4BB
tetradic
#BB28C4 #C46D28 #31C428 #287FC4
square
#BB28C4 #C46D28 #31C428 #287FC4
split-complementary
#BB28C4 #7FC428 #28C46D
monochromatic
#5A135E #8B1E91 #BB28C4 #D34EDB #E081E5

Accessibility & contrast

On white

4.98
#BB28C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BB28C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB28C4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB28C4#FFFFFF#000000##FFFFFF
##BB28C41.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#4D76C0
Tritanopia (blue-blind)
#BF4777
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bb28c4;
/* rgb */ color: rgb(187, 40, 196);
/* oklch */ color: oklch(57.6% 0.242 325.5);
Tailwind
colors: {
  custom: {
    50: '#d475d6',
    500: '#bb28c4',
    950: '#000000',
  },
}
SCSS
$custom: #bb28c4;
$custom-light: #d475d6;
$custom-dark: #000000;
JSON
{
  "hex": "#bb28c4",
  "rgb": {
    "r": 187,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 296.538,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57591,
    "c": 0.24228,
    "h": 325.5
  },
  "luminance": 0.16068
}

Semantic roles & 50–950 ramp

primary
#BB28C4
secondary
#7FCE7A
accent
#E93F49
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BB28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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