#B52DB7#B52DB7

#B52DB7 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.226 H 327.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B52DB7
RGBrgb(181, 45, 183)
HSLhsl(299, 61%, 45%)
HSVhsv(299, 75%, 72%)
CMYKcmyk(1.1%, 75.4%, 0%, 28.2%)
CIE-LABlab(45.80, 68.44, -43.74)
CIE-LCHlch(45.80, 81.23, 327.42°)
OKLaboklab(56.26% 0.1901 -0.1214)
OKLCHoklch(56.26% 0.226 327.4)
XYZxyz(28.5413, 15.1215, 46.2060)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DB7 #2FB72D
analogous
#702DB7 #B52DB7 #B72D74
triadic
#B52DB7 #B7B52D #2DB7B5
tetradic
#B52DB7 #B7702D #2FB72D #2D74B7
square
#B52DB7 #B7702D #2FB72D #2D74B7
split-complementary
#B52DB7 #74B72D #2DB770
monochromatic
#541555 #842186 #B52DB7 #D14ED3 #DE7FDF

Accessibility & contrast

On white

5.22
#B52DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B52DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52DB7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52DB7#FFFFFF#000000##FFFFFF
##B52DB71.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0361BB
Deuteranopia (green-blind)
#5272B4
Tritanopia (blue-blind)
#BA4471
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52db7;
/* rgb */ color: rgb(181, 45, 183);
/* oklch */ color: oklch(56.3% 0.226 327.4);
Tailwind
colors: {
  custom: {
    50: '#cf75cd',
    500: '#b52db7',
    950: '#000000',
  },
}
SCSS
$custom: #b52db7;
$custom-light: #cf75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52db7",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 299.13,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5626,
    "c": 0.22552,
    "h": 327.4
  },
  "luminance": 0.15119
}

Semantic roles & 50–950 ramp

primary
#B52DB7
secondary
#79C878
accent
#E44446
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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