#BB23A6#BB23A6

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

Color values

HEX#BB23A6
RGBrgb(187, 35, 166)
HSLhsl(308, 68%, 44%)
HSVhsv(308, 81%, 73%)
CMYKcmyk(0%, 81.3%, 11.2%, 26.7%)
CIE-LABlab(44.97, 69.79, -34.94)
CIE-LCHlch(44.97, 78.05, 333.41°)
OKLaboklab(55.57% 0.2038 -0.0957)
OKLCHoklch(55.57% 0.225 334.8)
XYZxyz(27.9779, 14.5226, 37.3987)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BB23A6 #23BB38
analogous
#8423BB #BB23A6 #BB235A
triadic
#BB23A6 #A6BB23 #23A6BB
tetradic
#BB23A6 #BB8423 #23BB38 #235ABB
square
#BB23A6 #BB8423 #23BB38 #235ABB
split-complementary
#BB23A6 #5ABB23 #23BB84
monochromatic
#54104A #871978 #BB23A6 #DB40C6 #E574D5

Accessibility & contrast

On white

5.38
#BB23A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#BB23A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BB23A6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BB23A6#FFFFFF#000000##FFFFFF
##BB23A61.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bb23a6;
/* rgb */ color: rgb(187, 35, 166);
/* oklch */ color: oklch(55.6% 0.225 334.8);
Tailwind
colors: {
  custom: {
    50: '#d472c1',
    500: '#bb23a6',
    950: '#000000',
  },
}
SCSS
$custom: #bb23a6;
$custom-light: #d472c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bb23a6",
  "rgb": {
    "r": 187,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 308.289,
    "s": 68.468,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55566,
    "c": 0.22511,
    "h": 334.8
  },
  "luminance": 0.1452
}

Semantic roles & 50–950 ramp

primary
#BB23A6
secondary
#6ECC7B
accent
#EB553C
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BB23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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