#B52DAF#B52DAF

#B52DAF is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.220 H 330.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B52DAF
RGBrgb(181, 45, 175)
HSLhsl(303, 60%, 44%)
HSVhsv(303, 75%, 71%)
CMYKcmyk(0%, 75.1%, 3.3%, 29%)
CIE-LABlab(45.36, 67.16, -39.74)
CIE-LCHlch(45.36, 78.04, 329.39°)
OKLaboklab(55.8% 0.1901 -0.1098)
OKLCHoklch(55.8% 0.22 330)
XYZxyz(27.7322, 14.7978, 41.9448)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DAF #2DB533
analogous
#772DB5 #B52DAF #B52D6B
triadic
#B52DAF #AFB52D #2DAFB5
tetradic
#B52DAF #B5772D #2DB533 #2D6BB5
square
#B52DAF #B5772D #2DB533 #2D6BB5
split-complementary
#B52DAF #6BB52D #2DB577
monochromatic
#531550 #842180 #B52DAF #D34DCD #DF7EDB

Accessibility & contrast

On white

5.30
#B52DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B52DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52DAF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52DAF#FFFFFF#000000##FFFFFF
##B52DAF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#BC406C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52daf;
/* rgb */ color: rgb(181, 45, 175);
/* oklch */ color: oklch(55.8% 0.220 330.0);
Tailwind
colors: {
  custom: {
    50: '#cf75c7',
    500: '#b52daf',
    950: '#000000',
  },
}
SCSS
$custom: #b52daf;
$custom-light: #cf75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b52daf",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 302.647,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.21955,
    "h": 330
  },
  "luminance": 0.14796
}

Semantic roles & 50–950 ramp

primary
#B52DAF
secondary
#76C77A
accent
#E34B44
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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