#B52FB8#B52FB8

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

Color values

HEX#B52FB8
RGBrgb(181, 47, 184)
HSLhsl(299, 59%, 45%)
HSVhsv(299, 74%, 72%)
CMYKcmyk(1.6%, 74.5%, 0%, 27.8%)
CIE-LABlab(46.07, 68.00, -43.90)
CIE-LCHlch(46.07, 80.94, 327.15°)
OKLaboklab(56.47% 0.1883 -0.1219)
OKLCHoklch(56.47% 0.224 327.1)
XYZxyz(28.7238, 15.3195, 46.7822)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB8 #32B82F
analogous
#702FB8 #B52FB8 #B82F76
triadic
#B52FB8 #B8B52F #2FB8B5
tetradic
#B52FB8 #B8702F #32B82F #2F76B8
square
#B52FB8 #B8702F #32B82F #2F76B8
split-complementary
#B52FB8 #76B82F #2FB870
monochromatic
#551657 #852387 #B52FB8 #D052D3 #DD82DF

Accessibility & contrast

On white

5.17
#B52FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B52FB8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB8#FFFFFF#000000##FFFFFF
##B52FB81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0762BC
Deuteranopia (green-blind)
#5273B5
Tritanopia (blue-blind)
#BA4672
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52fb8;
/* rgb */ color: rgb(181, 47, 184);
/* oklch */ color: oklch(56.5% 0.224 327.1);
Tailwind
colors: {
  custom: {
    50: '#cf76ce',
    500: '#b52fb8',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb8;
$custom-light: #cf76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb8",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 298.686,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.22432,
    "h": 327.1
  },
  "luminance": 0.15317
}

Semantic roles & 50–950 ramp

primary
#B52FB8
secondary
#7CC87B
accent
#E24549
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B52FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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