#B52FAF#B52FAF

#B52FAF is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.218 H 330.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B52FAF
RGBrgb(181, 47, 175)
HSLhsl(303, 59%, 45%)
HSVhsv(303, 74%, 71%)
CMYKcmyk(0%, 74%, 3.3%, 29%)
CIE-LABlab(45.57, 66.55, -39.40)
CIE-LCHlch(45.57, 77.33, 329.37°)
OKLaboklab(55.95% 0.1884 -0.1088)
OKLCHoklch(55.95% 0.218 330)
XYZxyz(27.8103, 14.9541, 41.9708)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FAF #2FB535
analogous
#782FB5 #B52FAF #B52F6C
triadic
#B52FAF #AFB52F #2FAFB5
tetradic
#B52FAF #B5782F #2FB535 #2F6CB5
square
#B52FAF #B5782F #2FB535 #2F6CB5
split-complementary
#B52FAF #6CB52F #2FB578
monochromatic
#541651 #842280 #B52FAF #D150CC #DE80DA

Accessibility & contrast

On white

5.26
#B52FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B52FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FAF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FAF#FFFFFF#000000##FFFFFF
##B52FAF1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D60B2
Deuteranopia (green-blind)
#5872AC
Tritanopia (blue-blind)
#BC416D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52faf;
/* rgb */ color: rgb(181, 47, 175);
/* oklch */ color: oklch(56.0% 0.218 330.0);
Tailwind
colors: {
  custom: {
    50: '#cf76c7',
    500: '#b52faf',
    950: '#000000',
  },
}
SCSS
$custom: #b52faf;
$custom-light: #cf76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b52faf",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 302.687,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.21753,
    "h": 330
  },
  "luminance": 0.14952
}

Semantic roles & 50–950 ramp

primary
#B52FAF
secondary
#79C77C
accent
#E24D46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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