#B52CB7#B52CB7

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

Color values

HEX#B52CB7
RGBrgb(181, 44, 183)
HSLhsl(299, 61%, 45%)
HSVhsv(299, 76%, 72%)
CMYKcmyk(1.1%, 76%, 0%, 28.2%)
CIE-LABlab(45.70, 68.74, -43.91)
CIE-LCHlch(45.70, 81.56, 327.43°)
OKLaboklab(56.19% 0.1909 -0.1219)
OKLCHoklch(56.19% 0.226 327.4)
XYZxyz(28.5036, 15.0461, 46.1935)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52CB7 #2EB72C
analogous
#702CB7 #B52CB7 #B72C73
triadic
#B52CB7 #B7B52C #2CB7B5
tetradic
#B52CB7 #B7702C #2EB72C #2C73B7
square
#B52CB7 #B7702C #2EB72C #2C73B7
split-complementary
#B52CB7 #73B72C #2CB770
monochromatic
#531454 #842086 #B52CB7 #D24CD4 #DE7EE0

Accessibility & contrast

On white

5.24
#B52CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B52CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52CB7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52CB7#FFFFFF#000000##FFFFFF
##B52CB71.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#5272B4
Tritanopia (blue-blind)
#BA4470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52cb7;
/* rgb */ color: rgb(181, 44, 183);
/* oklch */ color: oklch(56.2% 0.226 327.4);
Tailwind
colors: {
  custom: {
    50: '#cf75cd',
    500: '#b52cb7',
    950: '#000000',
  },
}
SCSS
$custom: #b52cb7;
$custom-light: #cf75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52cb7",
  "rgb": {
    "r": 181,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 299.137,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.22648,
    "h": 327.4
  },
  "luminance": 0.15044
}

Semantic roles & 50–950 ramp

primary
#B52CB7
secondary
#78C876
accent
#E44346
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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