#C52FAB#C52FAB

#C52FAB is a mid, highly saturated pink. Relative luminance 0.168; OKLCH L 58.2% C 0.223 H 336.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C52FAB
RGBrgb(197, 47, 171)
HSLhsl(310, 61%, 48%)
HSVhsv(310, 76%, 77%)
CMYKcmyk(0%, 76.1%, 13.2%, 22.7%)
CIE-LABlab(48.07, 69.48, -32.92)
CIE-LCHlch(48.07, 76.88, 334.65°)
OKLaboklab(58.19% 0.2041 -0.0898)
OKLCHoklch(58.19% 0.223 336.3)
XYZxyz(31.3937, 16.8465, 40.1185)
Luminance0.1684 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52FAB #2FC549
analogous
#942FC5 #C52FAB #C52F60
triadic
#C52FAB #ABC52F #2FABC5
tetradic
#C52FAB #C5942F #2FC549 #2F60C5
square
#C52FAB #C5942F #2FC549 #2F60C5
split-complementary
#C52FAB #60C52F #2FC594
monochromatic
#621755 #942380 #C52FAB #D85AC2 #E38BD4

Accessibility & contrast

On white

4.81
#C52FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#C52FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52FAB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52FAB#FFFFFF#000000##FFFFFF
##C52FAB1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#677AA8
Tritanopia (blue-blind)
#CF3A6B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c52fab;
/* rgb */ color: rgb(197, 47, 171);
/* oklch */ color: oklch(58.2% 0.223 336.3);
Tailwind
colors: {
  custom: {
    50: '#db78c4',
    500: '#c52fab',
    950: '#000000',
  },
}
SCSS
$custom: #c52fab;
$custom-light: #db78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c52fab",
  "rgb": {
    "r": 197,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 310.4,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58189,
    "c": 0.22298,
    "h": 336.3
  },
  "luminance": 0.16844
}

Semantic roles & 50–950 ramp

primary
#C52FAB
secondary
#82CD8F
accent
#E55F43
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C52FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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