#B52CB8#B52CB8

#B52CB8 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.227 H 327.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B52CB8
RGBrgb(181, 44, 184)
HSLhsl(299, 61%, 45%)
HSVhsv(299, 76%, 72%)
CMYKcmyk(1.6%, 76.1%, 0%, 27.8%)
CIE-LABlab(45.75, 68.90, -44.40)
CIE-LCHlch(45.75, 81.97, 327.20°)
OKLaboklab(56.25% 0.1909 -0.1233)
OKLCHoklch(56.25% 0.227 327.1)
XYZxyz(28.6080, 15.0879, 46.7436)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52CB8 #2FB82C
analogous
#6F2CB8 #B52CB8 #B82C75
triadic
#B52CB8 #B8B52C #2CB8B5
tetradic
#B52CB8 #B86F2C #2FB82C #2C75B8
square
#B52CB8 #B86F2C #2FB82C #2C75B8
split-complementary
#B52CB8 #75B82C #2CB86F
monochromatic
#541455 #842087 #B52CB8 #D14DD4 #DE7EE0

Accessibility & contrast

On white

5.23
#B52CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B52CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52CB8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52CB8#FFFFFF#000000##FFFFFF
##B52CB81.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#BA4471
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52cb8;
/* rgb */ color: rgb(181, 44, 184);
/* oklch */ color: oklch(56.2% 0.227 327.1);
Tailwind
colors: {
  custom: {
    50: '#cf75ce',
    500: '#b52cb8',
    950: '#000000',
  },
}
SCSS
$custom: #b52cb8;
$custom-light: #cf75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52cb8",
  "rgb": {
    "r": 181,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 298.714,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56245,
    "c": 0.22723,
    "h": 327.1
  },
  "luminance": 0.15086
}

Semantic roles & 50–950 ramp

primary
#B52CB8
secondary
#79C977
accent
#E54347
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B52CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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