#B52BB6#B52BB6

#B52BB6 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.1% C 0.227 H 327.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B52BB6
RGBrgb(181, 43, 182)
HSLhsl(300, 62%, 44%)
HSVhsv(300, 76%, 71%)
CMYKcmyk(0.5%, 76.4%, 0%, 28.6%)
CIE-LABlab(45.54, 68.87, -43.57)
CIE-LCHlch(45.54, 81.49, 327.68°)
OKLaboklab(56.06% 0.1918 -0.1209)
OKLCHoklch(56.06% 0.227 327.8)
XYZxyz(28.3631, 14.9310, 45.6350)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52BB6 #2CB62B
analogous
#702BB6 #B52BB6 #B62B72
triadic
#B52BB6 #B6B52B #2BB6B5
tetradic
#B52BB6 #B6702B #2CB62B #2B72B6
square
#B52BB6 #B6702B #2CB62B #2B72B6
split-complementary
#B52BB6 #72B62B #2BB670
monochromatic
#531453 #841F84 #B52BB6 #D34AD4 #DF7BE0

Accessibility & contrast

On white

5.27
#B52BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B52BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52BB6
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52BB6#FFFFFF#000000##FFFFFF
##B52BB61.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BA
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#BB4270
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52bb6;
/* rgb */ color: rgb(181, 43, 182);
/* oklch */ color: oklch(56.1% 0.227 327.8);
Tailwind
colors: {
  custom: {
    50: '#cf74cc',
    500: '#b52bb6',
    950: '#000000',
  },
}
SCSS
$custom: #b52bb6;
$custom-light: #cf74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52bb6",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 299.568,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.22668,
    "h": 327.8
  },
  "luminance": 0.14929
}

Semantic roles & 50–950 ramp

primary
#B52BB6
secondary
#75C875
accent
#E54344
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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