#B52797#B52797

#B52797 is a mid, highly saturated pink. Relative luminance 0.135; OKLCH L 54.1% C 0.209 H 338.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B52797
RGBrgb(181, 39, 151)
HSLhsl(313, 65%, 43%)
HSVhsv(313, 78%, 71%)
CMYKcmyk(0%, 78.5%, 16.6%, 29%)
CIE-LABlab(43.52, 65.35, -28.30)
CIE-LCHlch(43.52, 71.22, 336.59°)
OKLaboklab(54.09% 0.194 -0.0768)
OKLCHoklch(54.09% 0.209 338.4)
XYZxyz(25.3681, 13.5117, 30.5442)
Luminance0.1351 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52797 #27B545
analogous
#8C27B5 #B52797 #B52750
triadic
#B52797 #97B527 #2797B5
tetradic
#B52797 #B58C27 #27B545 #2750B5
square
#B52797 #B58C27 #27B545 #2750B5
split-complementary
#B52797 #50B527 #27B58C
monochromatic
#501143 #831C6D #B52797 #D643B7 #E175CA

Accessibility & contrast

On white

5.67
#B52797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B52797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52797
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52797#FFFFFF#000000##FFFFFF
##B527971.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#606F94
Tritanopia (blue-blind)
#BF2F5D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b52797;
/* rgb */ color: rgb(181, 39, 151);
/* oklch */ color: oklch(54.1% 0.209 338.4);
Tailwind
colors: {
  custom: {
    50: '#cf72b6',
    500: '#b52797',
    950: '#000000',
  },
}
SCSS
$custom: #b52797;
$custom-light: #cf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b52797",
  "rgb": {
    "r": 181,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 312.676,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54088,
    "c": 0.20861,
    "h": 338.4
  },
  "luminance": 0.13509
}

Semantic roles & 50–950 ramp

primary
#B52797
secondary
#6FC982
accent
#E86440
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52797

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

Preview Lab → · Contrast checker → · Palette generator →

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