#B52BA7#B52BA7

#B52BA7 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.216 H 332.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B52BA7
RGBrgb(181, 43, 167)
HSLhsl(306, 62%, 44%)
HSVhsv(306, 76%, 71%)
CMYKcmyk(0%, 76.2%, 7.7%, 29%)
CIE-LABlab(44.72, 66.52, -36.00)
CIE-LCHlch(44.72, 75.64, 331.58°)
OKLaboklab(55.21% 0.1917 -0.0989)
OKLCHoklch(55.21% 0.216 332.7)
XYZxyz(26.8951, 14.3438, 37.9039)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52BA7 #2BB539
analogous
#7E2BB5 #B52BA7 #B52B62
triadic
#B52BA7 #A7B52B #2BA7B5
tetradic
#B52BA7 #B57E2B #2BB539 #2B62B5
square
#B52BA7 #B57E2B #2BB539 #2B62B5
split-complementary
#B52BA7 #62B52B #2BB57E
monochromatic
#52144C #841F79 #B52BA7 #D449C6 #E07BD5

Accessibility & contrast

On white

5.43
#B52BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B52BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52BA7
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52BA7#FFFFFF#000000##FFFFFF
##B52BA71.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DAA
Deuteranopia (green-blind)
#5A71A4
Tritanopia (blue-blind)
#BD3B67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52ba7;
/* rgb */ color: rgb(181, 43, 167);
/* oklch */ color: oklch(55.2% 0.216 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf74c1',
    500: '#b52ba7',
    950: '#000000',
  },
}
SCSS
$custom: #b52ba7;
$custom-light: #cf74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ba7",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 306.087,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55208,
    "c": 0.21572,
    "h": 332.7
  },
  "luminance": 0.14342
}

Semantic roles & 50–950 ramp

primary
#B52BA7
secondary
#74C87D
accent
#E55343
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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