#BB2CA7#BB2CA7

#BB2CA7 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.218 H 334.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BB2CA7
RGBrgb(187, 44, 167)
HSLhsl(308, 62%, 45%)
HSVhsv(308, 76%, 73%)
CMYKcmyk(0%, 76.5%, 10.7%, 26.7%)
CIE-LABlab(45.85, 67.55, -34.15)
CIE-LCHlch(45.85, 75.69, 333.18°)
OKLaboklab(56.21% 0.1968 -0.0935)
OKLCHoklch(56.21% 0.218 334.6)
XYZxyz(28.3696, 15.1587, 37.9835)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB2CA7 #2CBB40
analogous
#882CBB #BB2CA7 #BB2C5F
triadic
#BB2CA7 #A7BB2C #2CA7BB
tetradic
#BB2CA7 #BB882C #2CBB40 #2C5FBB
square
#BB2CA7 #BB882C #2CBB40 #2C5FBB
split-complementary
#BB2CA7 #5FBB2C #2CBB88
monochromatic
#58154F #89207B #BB2CA7 #D64FC3 #E180D4

Accessibility & contrast

On white

5.21
#BB2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BB2CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB2CA7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB2CA7#FFFFFF#000000##FFFFFF
##BB2CA71.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5FAA
Deuteranopia (green-blind)
#6074A4
Tritanopia (blue-blind)
#C43968
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb2ca7;
/* rgb */ color: rgb(187, 44, 167);
/* oklch */ color: oklch(56.2% 0.218 334.6);
Tailwind
colors: {
  custom: {
    50: '#d375c1',
    500: '#bb2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #bb2ca7;
$custom-light: #d375c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb2ca7",
  "rgb": {
    "r": 187,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 308.392,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.21785,
    "h": 334.6
  },
  "luminance": 0.15156
}

Semantic roles & 50–950 ramp

primary
#BB2CA7
secondary
#79CA84
accent
#E55943
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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