#B52BAF#B52BAF

#B52BAF is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.7% C 0.221 H 330.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B52BAF
RGBrgb(181, 43, 175)
HSLhsl(303, 62%, 44%)
HSVhsv(303, 76%, 71%)
CMYKcmyk(0%, 76.2%, 3.3%, 29%)
CIE-LABlab(45.15, 67.76, -40.07)
CIE-LCHlch(45.15, 78.72, 329.40°)
OKLaboklab(55.65% 0.1918 -0.1107)
OKLCHoklch(55.65% 0.221 330)
XYZxyz(27.6577, 14.6488, 41.9199)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52BAF #2BB531
analogous
#762BB5 #B52BAF #B52B6A
triadic
#B52BAF #AFB52B #2BAFB5
tetradic
#B52BAF #B5762B #2BB531 #2B6AB5
square
#B52BAF #B5762B #2BB531 #2B6AB5
split-complementary
#B52BAF #6AB52B #2BB576
monochromatic
#52144F #841F7F #B52BAF #D449CE #E07BDB

Accessibility & contrast

On white

5.34
#B52BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B52BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52BAF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52BAF#FFFFFF#000000##FFFFFF
##B52BAF1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165FB3
Deuteranopia (green-blind)
#5671AC
Tritanopia (blue-blind)
#BC3F6C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52baf;
/* rgb */ color: rgb(181, 43, 175);
/* oklch */ color: oklch(55.7% 0.221 330.0);
Tailwind
colors: {
  custom: {
    50: '#cf74c7',
    500: '#b52baf',
    950: '#000000',
  },
}
SCSS
$custom: #b52baf;
$custom-light: #cf74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b52baf",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 302.609,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55652,
    "c": 0.22149,
    "h": 330
  },
  "luminance": 0.14647
}

Semantic roles & 50–950 ramp

primary
#B52BAF
secondary
#74C878
accent
#E54A43
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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