#B52DB9#B52DB9

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

Color values

HEX#B52DB9
RGBrgb(181, 45, 185)
HSLhsl(298, 61%, 45%)
HSVhsv(298, 76%, 73%)
CMYKcmyk(2.2%, 75.7%, 0%, 27.5%)
CIE-LABlab(45.91, 68.77, -44.73)
CIE-LCHlch(45.91, 82.04, 326.96°)
OKLaboklab(56.38% 0.19 -0.1243)
OKLCHoklch(56.38% 0.227 326.8)
XYZxyz(28.7509, 15.2053, 47.3101)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DB9 #31B92D
analogous
#6F2DB9 #B52DB9 #B92D77
triadic
#B52DB9 #B9B52D #2DB9B5
tetradic
#B52DB9 #B96F2D #31B92D #2D77B9
square
#B52DB9 #B96F2D #31B92D #2D77B9
split-complementary
#B52DB9 #77B92D #2DB96F
monochromatic
#551557 #852188 #B52DB9 #D04FD4 #DD80E0

Accessibility & contrast

On white

5.20
#B52DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B52DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52DB9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52DB9#FFFFFF#000000##FFFFFF
##B52DB91.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#BA4572
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52db9;
/* rgb */ color: rgb(181, 45, 185);
/* oklch */ color: oklch(56.4% 0.227 326.8);
Tailwind
colors: {
  custom: {
    50: '#cf75ce',
    500: '#b52db9',
    950: '#000000',
  },
}
SCSS
$custom: #b52db9;
$custom-light: #cf75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52db9",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 298.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56378,
    "c": 0.22704,
    "h": 326.8
  },
  "luminance": 0.15203
}

Semantic roles & 50–950 ramp

primary
#B52DB9
secondary
#7BC979
accent
#E44448
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B52DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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