#B52FA4#B52FA4

#B52FA4 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.210 H 333.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B52FA4
RGBrgb(181, 47, 164)
HSLhsl(308, 59%, 45%)
HSVhsv(308, 74%, 71%)
CMYKcmyk(0%, 74%, 9.4%, 29%)
CIE-LABlab(45.00, 64.85, -33.78)
CIE-LCHlch(45.00, 73.12, 332.48°)
OKLaboklab(55.36% 0.1879 -0.0926)
OKLCHoklch(55.36% 0.21 333.8)
XYZxyz(26.7736, 14.5394, 36.5111)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FA4 #2FB540
analogous
#832FB5 #B52FA4 #B52F61
triadic
#B52FA4 #A4B52F #2FA4B5
tetradic
#B52FA4 #B5832F #2FB540 #2F61B5
square
#B52FA4 #B5832F #2FB540 #2F61B5
split-complementary
#B52FA4 #61B52F #2FB583
monochromatic
#54164C #842278 #B52FA4 #D150C1 #DE80D2

Accessibility & contrast

On white

5.37
#B52FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B52FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FA4
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FA4#FFFFFF#000000##FFFFFF
##B52FA41.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5EA7
Deuteranopia (green-blind)
#5D71A1
Tritanopia (blue-blind)
#BD3C67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52fa4;
/* rgb */ color: rgb(181, 47, 164);
/* oklch */ color: oklch(55.4% 0.210 333.8);
Tailwind
colors: {
  custom: {
    50: '#cf75bf',
    500: '#b52fa4',
    950: '#000000',
  },
}
SCSS
$custom: #b52fa4;
$custom-light: #cf75bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fa4",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 307.612,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55355,
    "c": 0.20951,
    "h": 333.8
  },
  "luminance": 0.14537
}

Semantic roles & 50–950 ramp

primary
#B52FA4
secondary
#79C783
accent
#E25A46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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