#B52CB9#B52CB9

#B52CB9 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.228 H 326.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B52CB9
RGBrgb(181, 44, 185)
HSLhsl(298, 62%, 45%)
HSVhsv(298, 76%, 73%)
CMYKcmyk(2.2%, 76.2%, 0%, 27.5%)
CIE-LABlab(45.81, 69.06, -44.90)
CIE-LCHlch(45.81, 82.37, 326.97°)
OKLaboklab(56.31% 0.1908 -0.1248)
OKLCHoklch(56.31% 0.228 326.8)
XYZxyz(28.7132, 15.1299, 47.2976)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52CB9 #30B92C
analogous
#6F2CB9 #B52CB9 #B92C76
triadic
#B52CB9 #B9B52C #2CB9B5
tetradic
#B52CB9 #B96F2C #30B92C #2C76B9
square
#B52CB9 #B96F2C #30B92C #2C76B9
split-complementary
#B52CB9 #76B92C #2CB96F
monochromatic
#541456 #852088 #B52CB9 #D14DD5 #DE7FE1

Accessibility & contrast

On white

5.22
#B52CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B52CB9
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52CB9#FFFFFF#000000##FFFFFF
##B52CB91.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5072B6
Tritanopia (blue-blind)
#BA4572
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52cb9;
/* rgb */ color: rgb(181, 44, 185);
/* oklch */ color: oklch(56.3% 0.228 326.8);
Tailwind
colors: {
  custom: {
    50: '#cf75ce',
    500: '#b52cb9',
    950: '#000000',
  },
}
SCSS
$custom: #b52cb9;
$custom-light: #cf75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52cb9",
  "rgb": {
    "r": 181,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 298.298,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.22799,
    "h": 326.8
  },
  "luminance": 0.15128
}

Semantic roles & 50–950 ramp

primary
#B52CB9
secondary
#7AC978
accent
#E54348
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B52CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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