#C52DC7#C52DC7

#C52DC7 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.6% C 0.244 H 327.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C52DC7
RGBrgb(197, 45, 199)
HSLhsl(299, 63%, 48%)
HSVhsv(299, 77%, 78%)
CMYKcmyk(1%, 77.4%, 0%, 22%)
CIE-LABlab(49.34, 74.24, -47.26)
CIE-LCHlch(49.34, 88.01, 327.52°)
OKLaboklab(59.58% 0.2063 -0.1312)
OKLCHoklch(59.58% 0.244 327.5)
XYZxyz(34.2727, 17.8731, 55.6665)
Luminance0.1787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52DC7 #2FC72D
analogous
#782DC7 #C52DC7 #C72D7C
triadic
#C52DC7 #C7C52D #2DC7C5
tetradic
#C52DC7 #C7782D #2FC72D #2D7CC7
square
#C52DC7 #C7782D #2FC72D #2D7CC7
split-complementary
#C52DC7 #7CC72D #2DC778
monochromatic
#621663 #942295 #C52DC7 #D858D9 #E38AE5

Accessibility & contrast

On white

4.59
#C52DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#C52DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C52DC7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52DC7#FFFFFF#000000##FFFFFF
##C52DC71.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#587CC3
Tritanopia (blue-blind)
#CB487A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c52dc7;
/* rgb */ color: rgb(197, 45, 199);
/* oklch */ color: oklch(59.6% 0.244 327.5);
Tailwind
colors: {
  custom: {
    50: '#db78d8',
    500: '#c52dc7',
    950: '#000000',
  },
}
SCSS
$custom: #c52dc7;
$custom-light: #db78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c52dc7",
  "rgb": {
    "r": 197,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 299.221,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.59577,
    "c": 0.24449,
    "h": 327.5
  },
  "luminance": 0.17871
}

Semantic roles & 50–950 ramp

primary
#C52DC7
secondary
#82CE81
accent
#E64244
background
#FEF7FD
surface
#FCEEFA
border
#D5C9D3
text
#150A15
muted
#847C83

Preview Lab

Preview with #C52DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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