#B52AA7#B52AA7

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

Color values

HEX#B52AA7
RGBrgb(181, 42, 167)
HSLhsl(306, 62%, 44%)
HSVhsv(306, 77%, 71%)
CMYKcmyk(0%, 76.8%, 7.7%, 29%)
CIE-LABlab(44.62, 66.82, -36.16)
CIE-LCHlch(44.62, 75.97, 331.58°)
OKLaboklab(55.14% 0.1925 -0.0994)
OKLCHoklch(55.14% 0.217 332.7)
XYZxyz(26.8592, 14.2720, 37.8919)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AA7 #2AB538
analogous
#7D2AB5 #B52AA7 #B52A61
triadic
#B52AA7 #A7B52A #2AA7B5
tetradic
#B52AA7 #B57D2A #2AB538 #2A61B5
square
#B52AA7 #B57D2A #2AB538 #2A61B5
split-complementary
#B52AA7 #61B52A #2AB57D
monochromatic
#52134B #831E79 #B52AA7 #D448C6 #E079D6

Accessibility & contrast

On white

5.45
#B52AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B52AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AA7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AA7#FFFFFF#000000##FFFFFF
##B52AA71.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAA
Deuteranopia (green-blind)
#5A70A4
Tritanopia (blue-blind)
#BD3A67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52aa7;
/* rgb */ color: rgb(181, 42, 167);
/* oklch */ color: oklch(55.1% 0.217 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf73c1',
    500: '#b52aa7',
    950: '#000000',
  },
}
SCSS
$custom: #b52aa7;
$custom-light: #cf73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52aa7",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 306.043,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55135,
    "c": 0.21668,
    "h": 332.7
  },
  "luminance": 0.1427
}

Semantic roles & 50–950 ramp

primary
#B52AA7
secondary
#73C87B
accent
#E55342
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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