#B52FA7#B52FA7

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

Color values

HEX#B52FA7
RGBrgb(181, 47, 167)
HSLhsl(306, 59%, 45%)
HSVhsv(306, 74%, 71%)
CMYKcmyk(0%, 74%, 7.7%, 29%)
CIE-LABlab(45.15, 65.30, -35.32)
CIE-LCHlch(45.15, 74.24, 331.59°)
OKLaboklab(55.52% 0.1881 -0.097)
OKLCHoklch(55.52% 0.212 332.7)
XYZxyz(27.0477, 14.6491, 37.9547)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FA7 #2FB53D
analogous
#802FB5 #B52FA7 #B52F64
triadic
#B52FA7 #A7B52F #2FA7B5
tetradic
#B52FA7 #B5802F #2FB53D #2F64B5
square
#B52FA7 #B5802F #2FB53D #2F64B5
split-complementary
#B52FA7 #64B52F #2FB580
monochromatic
#54164D #84227A #B52FA7 #D150C4 #DE80D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B52FA7#FFFFFF#000000##FFFFFF
##B52FA71.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)
#285FAA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#BD3D68
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52fa7;
/* rgb */ color: rgb(181, 47, 167);
/* oklch */ color: oklch(55.5% 0.212 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf75c1',
    500: '#b52fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b52fa7;
$custom-light: #cf75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fa7",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 306.269,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55515,
    "c": 0.21166,
    "h": 332.7
  },
  "luminance": 0.14647
}

Semantic roles & 50–950 ramp

primary
#B52FA7
secondary
#79C781
accent
#E25646
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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