#C52AB9#C52AB9

#C52AB9 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.6% C 0.237 H 331.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C52AB9
RGBrgb(197, 42, 185)
HSLhsl(305, 65%, 47%)
HSVhsv(305, 79%, 77%)
CMYKcmyk(0%, 78.7%, 6.1%, 22.7%)
CIE-LABlab(48.30, 72.88, -40.78)
CIE-LCHlch(48.30, 83.51, 330.77°)
OKLaboklab(58.59% 0.2088 -0.1124)
OKLCHoklch(58.59% 0.237 331.7)
XYZxyz(32.6109, 17.0318, 47.4595)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52AB9 #2AC536
analogous
#842AC5 #C52AB9 #C52A6C
triadic
#C52AB9 #B9C52A #2AB9C5
tetradic
#C52AB9 #C5842A #2AC536 #2A6CC5
square
#C52AB9 #C5842A #2AC536 #2A6CC5
split-complementary
#C52AB9 #6CC52A #2AC584
monochromatic
#60145A #931F8A #C52AB9 #DA52D0 #E585DD

Accessibility & contrast

On white

4.77
#C52AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#C52AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52AB9
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52AB9#FFFFFF#000000##FFFFFF
##C52AB91.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BD
Deuteranopia (green-blind)
#5F7AB5
Tritanopia (blue-blind)
#CD3F71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c52ab9;
/* rgb */ color: rgb(197, 42, 185);
/* oklch */ color: oklch(58.6% 0.237 331.7);
Tailwind
colors: {
  custom: {
    50: '#db76ce',
    500: '#c52ab9',
    950: '#000000',
  },
}
SCSS
$custom: #c52ab9;
$custom-light: #db76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c52ab9",
  "rgb": {
    "r": 197,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 304.645,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58587,
    "c": 0.2371,
    "h": 331.7
  },
  "luminance": 0.17029
}

Semantic roles & 50–950 ramp

primary
#C52AB9
secondary
#7DCE83
accent
#E84D40
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#150A14
muted
#847C82

Preview Lab

Preview with #C52AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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