#B52FB2#B52FB2

#B52FB2 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.220 H 329.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B52FB2
RGBrgb(181, 47, 178)
HSLhsl(301, 59%, 45%)
HSVhsv(301, 74%, 71%)
CMYKcmyk(0%, 74%, 1.7%, 29%)
CIE-LABlab(45.73, 67.02, -40.91)
CIE-LCHlch(45.73, 78.52, 328.60°)
OKLaboklab(56.12% 0.1884 -0.1132)
OKLCHoklch(56.12% 0.22 329)
XYZxyz(28.1082, 15.0733, 43.5398)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB2 #2FB532
analogous
#752FB5 #B52FB2 #B52F6F
triadic
#B52FB2 #B2B52F #2FB2B5
tetradic
#B52FB2 #B5752F #2FB532 #2F6FB5
square
#B52FB2 #B5752F #2FB532 #2F6FB5
split-complementary
#B52FB2 #6FB52F #2FB575
monochromatic
#541652 #842282 #B52FB2 #D150CF #DE80DC

Accessibility & contrast

On white

5.23
#B52FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B52FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB2#FFFFFF#000000##FFFFFF
##B52FB21.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B6
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#BB436E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52fb2;
/* rgb */ color: rgb(181, 47, 178);
/* oklch */ color: oklch(56.1% 0.220 329.0);
Tailwind
colors: {
  custom: {
    50: '#cf76c9',
    500: '#b52fb2',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb2;
$custom-light: #cf76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb2",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 301.343,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56123,
    "c": 0.21977,
    "h": 329
  },
  "luminance": 0.15071
}

Semantic roles & 50–950 ramp

primary
#B52FB2
secondary
#79C77B
accent
#E24946
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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