#B52FB6#B52FB6

#B52FB6 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.223 H 327.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B52FB6
RGBrgb(181, 47, 182)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 74%, 71%)
CMYKcmyk(0.5%, 74.2%, 0%, 28.6%)
CIE-LABlab(45.96, 67.67, -42.91)
CIE-LCHlch(45.96, 80.13, 327.62°)
OKLaboklab(56.35% 0.1884 -0.119)
OKLCHoklch(56.35% 0.223 327.7)
XYZxyz(28.5157, 15.2362, 45.6859)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB6 #30B62F
analogous
#722FB6 #B52FB6 #B62F73
triadic
#B52FB6 #B6B52F #2FB6B5
tetradic
#B52FB6 #B6722F #30B62F #2F73B6
square
#B52FB6 #B6722F #30B62F #2F73B6
split-complementary
#B52FB6 #73B62F #2FB672
monochromatic
#541655 #852285 #B52FB6 #D150D2 #DE81DE

Accessibility & contrast

On white

5.19
#B52FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B52FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB6
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB6#FFFFFF#000000##FFFFFF
##B52FB61.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E62BA
Deuteranopia (green-blind)
#5373B3
Tritanopia (blue-blind)
#BB4571
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52fb6;
/* rgb */ color: rgb(181, 47, 182);
/* oklch */ color: oklch(56.4% 0.223 327.7);
Tailwind
colors: {
  custom: {
    50: '#cf76cc',
    500: '#b52fb6',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb6;
$custom-light: #cf76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb6",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 299.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56353,
    "c": 0.2228,
    "h": 327.7
  },
  "luminance": 0.15234
}

Semantic roles & 50–950 ramp

primary
#B52FB6
secondary
#7AC779
accent
#E24647
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B52FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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