#BB23A8#BB23A8

#BB23A8 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.226 H 334.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#BB23A8
RGBrgb(187, 35, 168)
HSLhsl(308, 68%, 44%)
HSVhsv(308, 81%, 73%)
CMYKcmyk(0%, 81.3%, 10.2%, 26.7%)
CIE-LABlab(45.08, 70.07, -35.97)
CIE-LCHlch(45.08, 78.77, 332.83°)
OKLaboklab(55.67% 0.2038 -0.0987)
OKLCHoklch(55.67% 0.226 334.2)
XYZxyz(28.1627, 14.5966, 38.3724)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB23A8 #23BB36
analogous
#8223BB #BB23A8 #BB235C
triadic
#BB23A8 #A8BB23 #23A8BB
tetradic
#BB23A8 #BB8223 #23BB36 #235CBB
square
#BB23A8 #BB8223 #23BB36 #235CBB
split-complementary
#BB23A8 #5CBB23 #23BB82
monochromatic
#54104B #87197A #BB23A8 #DB40C8 #E574D7

Accessibility & contrast

On white

5.36
#BB23A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#BB23A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB23A8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB23A8#FFFFFF#000000##FFFFFF
##BB23A81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#C43466
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #bb23a8;
/* rgb */ color: rgb(187, 35, 168);
/* oklch */ color: oklch(55.7% 0.226 334.2);
Tailwind
colors: {
  custom: {
    50: '#d472c2',
    500: '#bb23a8',
    950: '#000000',
  },
}
SCSS
$custom: #bb23a8;
$custom-light: #d472c2;
$custom-dark: #000000;
JSON
{
  "hex": "#bb23a8",
  "rgb": {
    "r": 187,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 307.5,
    "s": 68.468,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55674,
    "c": 0.22645,
    "h": 334.2
  },
  "luminance": 0.14594
}

Semantic roles & 50–950 ramp

primary
#BB23A8
secondary
#6ECC7A
accent
#EB523C
background
#FDF7FC
surface
#FBEDF8
border
#D4C8D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BB23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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