#BB22A6#BB22A6

#BB22A6 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.5% C 0.226 H 334.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#BB22A6
RGBrgb(187, 34, 166)
HSLhsl(308, 69%, 43%)
HSVhsv(308, 82%, 73%)
CMYKcmyk(0%, 81.8%, 11.2%, 26.7%)
CIE-LABlab(44.89, 70.02, -35.07)
CIE-LCHlch(44.89, 78.31, 333.40°)
OKLaboklab(55.51% 0.2045 -0.0961)
OKLCHoklch(55.51% 0.226 334.8)
XYZxyz(27.9489, 14.4646, 37.3890)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB22A6 #22BB37
analogous
#8322BB #BB22A6 #BB2259
triadic
#BB22A6 #A6BB22 #22A6BB
tetradic
#BB22A6 #BB8322 #22BB37 #2259BB
square
#BB22A6 #BB8322 #22BB37 #2259BB
split-complementary
#BB22A6 #59BB22 #22BB83
monochromatic
#530F4A #871978 #BB22A6 #DC3EC6 #E572D6

Accessibility & contrast

On white

5.40
#BB22A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#BB22A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB22A6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB22A6#FFFFFF#000000##FFFFFF
##BB22A61.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205CA9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#C43265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #bb22a6;
/* rgb */ color: rgb(187, 34, 166);
/* oklch */ color: oklch(55.5% 0.226 334.8);
Tailwind
colors: {
  custom: {
    50: '#d472c1',
    500: '#bb22a6',
    950: '#000000',
  },
}
SCSS
$custom: #bb22a6;
$custom-light: #d472c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb22a6",
  "rgb": {
    "r": 187,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 308.235,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55508,
    "c": 0.2259,
    "h": 334.8
  },
  "luminance": 0.14462
}

Semantic roles & 50–950 ramp

primary
#BB22A6
secondary
#6DCC7A
accent
#EC543C
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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