#BB20A7#BB20A7

#BB20A7 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.5% C 0.228 H 334.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BB20A7
RGBrgb(187, 32, 167)
HSLhsl(308, 71%, 43%)
HSVhsv(308, 83%, 73%)
CMYKcmyk(0%, 82.9%, 10.7%, 26.7%)
CIE-LABlab(44.79, 70.62, -35.83)
CIE-LCHlch(44.79, 79.19, 333.10°)
OKLaboklab(55.45% 0.2058 -0.0982)
OKLCHoklch(55.45% 0.228 334.5)
XYZxyz(27.9854, 14.3904, 37.8555)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB20A7 #20BB34
analogous
#8120BB #BB20A7 #BB2059
triadic
#BB20A7 #A7BB20 #20A7BB
tetradic
#BB20A7 #BB8120 #20BB34 #2059BB
square
#BB20A7 #BB8120 #20BB34 #2059BB
split-complementary
#BB20A7 #59BB20 #20BB81
monochromatic
#520E4A #871778 #BB20A7 #DD3BC8 #E66FD7

Accessibility & contrast

On white

5.42
#BB20A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#BB20A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB20A7
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB20A7#FFFFFF#000000##FFFFFF
##BB20A71.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#C43265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb20a7;
/* rgb */ color: rgb(187, 32, 167);
/* oklch */ color: oklch(55.5% 0.228 334.5);
Tailwind
colors: {
  custom: {
    50: '#d471c1',
    500: '#bb20a7',
    950: '#000000',
  },
}
SCSS
$custom: #bb20a7;
$custom-light: #d471c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb20a7",
  "rgb": {
    "r": 187,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 307.742,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5545,
    "c": 0.22807,
    "h": 334.5
  },
  "luminance": 0.14388
}

Semantic roles & 50–950 ramp

primary
#BB20A7
secondary
#6ACD77
accent
#EE513A
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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