#B52CD2#B52CD2

#B52CD2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.9% C 0.247 H 319.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#B52CD2
RGBrgb(181, 44, 210)
HSLhsl(290, 65%, 50%)
HSVhsv(290, 79%, 82%)
CMYKcmyk(13.8%, 79%, 0%, 17.6%)
CIE-LABlab(47.34, 73.32, -56.95)
CIE-LCHlch(47.34, 92.84, 322.16°)
OKLaboklab(57.88% 0.1886 -0.16)
OKLCHoklch(57.88% 0.247 319.7)
XYZxyz(31.5881, 16.2799, 62.4388)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52CD2 #49D22C
analogous
#622CD2 #B52CD2 #D22C9C
triadic
#B52CD2 #D2B52C #2CD2B5
tetradic
#B52CD2 #D2622C #49D22C #2C9CD2
square
#B52CD2 #D2622C #49D22C #2C9CD2
split-complementary
#B52CD2 #9CD22C #2CD262
monochromatic
#5E176D #89219F #B52CD2 #C75EDD #D991E8

Accessibility & contrast

On white

4.93
#B52CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#B52CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52CD2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52CD2#FFFFFF#000000##FFFFFF
##B52CD21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#3C75CE
Tritanopia (blue-blind)
#B55180
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b52cd2;
/* rgb */ color: rgb(181, 44, 210);
/* oklch */ color: oklch(57.9% 0.247 319.7);
Tailwind
colors: {
  custom: {
    50: '#d076e1',
    500: '#b52cd2',
    950: '#000000',
  },
}
SCSS
$custom: #b52cd2;
$custom-light: #d076e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52cd2",
  "rgb": {
    "r": 181,
    "g": 44,
    "b": 210
  },
  "hsl": {
    "h": 289.518,
    "s": 65.354,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57875,
    "c": 0.24733,
    "h": 319.7
  },
  "luminance": 0.16278
}

Semantic roles & 50–950 ramp

primary
#B52CD2
secondary
#94D287
accent
#E83F5D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B52CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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