#BB22BB#BB22BB

#BB22BB is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.7% C 0.240 H 328.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BB22BB
RGBrgb(187, 34, 187)
HSLhsl(300, 69%, 43%)
HSVhsv(300, 82%, 73%)
CMYKcmyk(0%, 81.8%, 0%, 26.7%)
CIE-LABlab(46.04, 73.15, -45.64)
CIE-LCHlch(46.04, 86.22, 328.04°)
OKLaboklab(56.7% 0.2043 -0.1267)
OKLCHoklch(56.7% 0.24 328.2)
XYZxyz(30.0348, 15.2990, 48.3752)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB22BB #22BB22
analogous
#6E22BB #BB22BB #BB226E
triadic
#BB22BB #BBBB22 #22BBBB
tetradic
#BB22BB #BB6E22 #22BB22 #226EBB
square
#BB22BB #BB6E22 #22BB22 #226EBB
split-complementary
#BB22BB #6EBB22 #22BB6E
monochromatic
#530F53 #871987 #BB22BB #DC3EDC #E572E5

Accessibility & contrast

On white

5.17
#BB22BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BB22BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB22BB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB22BB#FFFFFF#000000##FFFFFF
##BB22BB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#5174B7
Tritanopia (blue-blind)
#C13F71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #bb22bb;
/* rgb */ color: rgb(187, 34, 187);
/* oklch */ color: oklch(56.7% 0.240 328.2);
Tailwind
colors: {
  custom: {
    50: '#d472d0',
    500: '#bb22bb',
    950: '#000000',
  },
}
SCSS
$custom: #bb22bb;
$custom-light: #d472d0;
$custom-dark: #000000;
JSON
{
  "hex": "#bb22bb",
  "rgb": {
    "r": 187,
    "g": 34,
    "b": 187
  },
  "hsl": {
    "h": 300,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.24038,
    "h": 328.2
  },
  "luminance": 0.15297
}

Semantic roles & 50–950 ramp

primary
#BB22BB
secondary
#6DCC6D
accent
#EC3C3C
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BB22BB

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

Preview Lab → · Contrast checker → · Palette generator →

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