#B52FB7#B52FB7

#B52FB7 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.224 H 327.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B52FB7
RGBrgb(181, 47, 183)
HSLhsl(299, 59%, 45%)
HSVhsv(299, 74%, 72%)
CMYKcmyk(1.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(46.01, 67.83, -43.41)
CIE-LCHlch(46.01, 80.53, 327.39°)
OKLaboklab(56.41% 0.1884 -0.1204)
OKLCHoklch(56.41% 0.224 327.4)
XYZxyz(28.6194, 15.2777, 46.2321)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB7 #31B72F
analogous
#712FB7 #B52FB7 #B72F75
triadic
#B52FB7 #B7B52F #2FB7B5
tetradic
#B52FB7 #B7712F #31B72F #2F75B7
square
#B52FB7 #B7712F #31B72F #2F75B7
split-complementary
#B52FB7 #75B72F #2FB771
monochromatic
#551656 #852286 #B52FB7 #D051D2 #DD82DF

Accessibility & contrast

On white

5.18
#B52FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B52FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB7
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB7#FFFFFF#000000##FFFFFF
##B52FB71.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B62BB
Deuteranopia (green-blind)
#5373B4
Tritanopia (blue-blind)
#BA4571
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52fb7;
/* rgb */ color: rgb(181, 47, 183);
/* oklch */ color: oklch(56.4% 0.224 327.4);
Tailwind
colors: {
  custom: {
    50: '#cf76cd',
    500: '#b52fb7',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb7;
$custom-light: #cf76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb7",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 299.118,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56411,
    "c": 0.22356,
    "h": 327.4
  },
  "luminance": 0.15276
}

Semantic roles & 50–950 ramp

primary
#B52FB7
secondary
#7BC87A
accent
#E24548
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B52FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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