#B52CB6#B52CB6

#B52CB6 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.226 H 327.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B52CB6
RGBrgb(181, 44, 182)
HSLhsl(300, 61%, 44%)
HSVhsv(300, 76%, 71%)
CMYKcmyk(0.5%, 75.8%, 0%, 28.6%)
CIE-LABlab(45.64, 68.58, -43.41)
CIE-LCHlch(45.64, 81.16, 327.67°)
OKLaboklab(56.13% 0.1909 -0.1204)
OKLCHoklch(56.13% 0.226 327.8)
XYZxyz(28.3999, 15.0046, 45.6473)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52CB6 #2DB62C
analogous
#702CB6 #B52CB6 #B62C72
triadic
#B52CB6 #B6B52C #2CB6B5
tetradic
#B52CB6 #B6702C #2DB62C #2C72B6
square
#B52CB6 #B6702C #2DB62C #2C72B6
split-complementary
#B52CB6 #72B62C #2CB670
monochromatic
#531453 #842085 #B52CB6 #D34CD4 #DF7DE0

Accessibility & contrast

On white

5.25
#B52CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B52CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52CB6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52CB6#FFFFFF#000000##FFFFFF
##B52CB61.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BA
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#BB4370
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52cb6;
/* rgb */ color: rgb(181, 44, 182);
/* oklch */ color: oklch(56.1% 0.226 327.8);
Tailwind
colors: {
  custom: {
    50: '#cf75cc',
    500: '#b52cb6',
    950: '#000000',
  },
}
SCSS
$custom: #b52cb6;
$custom-light: #cf75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52cb6",
  "rgb": {
    "r": 181,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 299.565,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56128,
    "c": 0.22573,
    "h": 327.8
  },
  "luminance": 0.15003
}

Semantic roles & 50–950 ramp

primary
#B52CB6
secondary
#76C876
accent
#E44445
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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