#B52CA8#B52CA8

#B52CA8 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.215 H 332.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B52CA8
RGBrgb(181, 44, 168)
HSLhsl(306, 61%, 44%)
HSVhsv(306, 76%, 71%)
CMYKcmyk(0%, 75.7%, 7.2%, 29%)
CIE-LABlab(44.88, 66.38, -36.35)
CIE-LCHlch(44.88, 75.68, 331.30°)
OKLaboklab(55.34% 0.1909 -0.1)
OKLCHoklch(55.34% 0.215 332.4)
XYZxyz(27.0247, 14.4545, 38.4049)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52CA8 #2CB539
analogous
#7E2CB5 #B52CA8 #B52C64
triadic
#B52CA8 #A8B52C #2CA8B5
tetradic
#B52CA8 #B57E2C #2CB539 #2C64B5
square
#B52CA8 #B57E2C #2CB539 #2C64B5
split-complementary
#B52CA8 #64B52C #2CB57E
monochromatic
#53144D #84207A #B52CA8 #D34BC6 #DF7CD6

Accessibility & contrast

On white

5.40
#B52CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B52CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52CA8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52CA8#FFFFFF#000000##FFFFFF
##B52CA81.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235EAB
Deuteranopia (green-blind)
#5A71A5
Tritanopia (blue-blind)
#BD3C68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52ca8;
/* rgb */ color: rgb(181, 44, 168);
/* oklch */ color: oklch(55.3% 0.215 332.4);
Tailwind
colors: {
  custom: {
    50: '#cf74c2',
    500: '#b52ca8',
    950: '#000000',
  },
}
SCSS
$custom: #b52ca8;
$custom-light: #cf74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ca8",
  "rgb": {
    "r": 181,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 305.693,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55336,
    "c": 0.21545,
    "h": 332.4
  },
  "luminance": 0.14452
}

Semantic roles & 50–950 ramp

primary
#B52CA8
secondary
#75C87D
accent
#E45344
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B52CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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