#C52AB8#C52AB8

#C52AB8 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.236 H 332.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C52AB8
RGBrgb(197, 42, 184)
HSLhsl(305, 65%, 47%)
HSVhsv(305, 79%, 77%)
CMYKcmyk(0%, 78.7%, 6.6%, 22.7%)
CIE-LABlab(48.25, 72.73, -40.28)
CIE-LCHlch(48.25, 83.14, 331.02°)
OKLaboklab(58.53% 0.2088 -0.1109)
OKLCHoklch(58.53% 0.236 332)
XYZxyz(32.5057, 16.9897, 46.9055)
Luminance0.1699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52AB8 #2AC537
analogous
#852AC5 #C52AB8 #C52A6B
triadic
#C52AB8 #B8C52A #2AB8C5
tetradic
#C52AB8 #C5852A #2AC537 #2A6BC5
square
#C52AB8 #C5852A #2AC537 #2A6BC5
split-complementary
#C52AB8 #6BC52A #2AC585
monochromatic
#60145A #931F89 #C52AB8 #DA52CF #E585DD

Accessibility & contrast

On white

4.78
#C52AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#C52AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52AB8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52AB8#FFFFFF#000000##FFFFFF
##C52AB81.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B65BC
Deuteranopia (green-blind)
#607AB4
Tritanopia (blue-blind)
#CD3E71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c52ab8;
/* rgb */ color: rgb(197, 42, 184);
/* oklch */ color: oklch(58.5% 0.236 332.0);
Tailwind
colors: {
  custom: {
    50: '#db76ce',
    500: '#c52ab8',
    950: '#000000',
  },
}
SCSS
$custom: #c52ab8;
$custom-light: #db76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c52ab8",
  "rgb": {
    "r": 197,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 305.032,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58532,
    "c": 0.23641,
    "h": 332
  },
  "luminance": 0.16987
}

Semantic roles & 50–950 ramp

primary
#C52AB8
secondary
#7DCE84
accent
#E84E40
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#150A13
muted
#847C82

Preview Lab

Preview with #C52AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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