#C52FB8#C52FB8

#C52FB8 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.9% C 0.232 H 332.0°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#C52FB8
RGBrgb(197, 47, 184)
HSLhsl(305, 61%, 48%)
HSVhsv(305, 76%, 77%)
CMYKcmyk(0%, 76.1%, 6.6%, 22.7%)
CIE-LABlab(48.72, 71.37, -39.53)
CIE-LCHlch(48.72, 81.59, 331.02°)
OKLaboklab(58.87% 0.2048 -0.1088)
OKLCHoklch(58.87% 0.232 332)
XYZxyz(32.6943, 17.3668, 46.9683)
Luminance0.1736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52FB8 #2FC53C
analogous
#872FC5 #C52FB8 #C52F6D
triadic
#C52FB8 #B8C52F #2FB8C5
tetradic
#C52FB8 #C5872F #2FC53C #2F6DC5
square
#C52FB8 #C5872F #2FC53C #2F6DC5
split-complementary
#C52FB8 #6DC52F #2FC587
monochromatic
#62175C #94238A #C52FB8 #D85ACD #E38BDC

Accessibility & contrast

On white

4.70
#C52FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#C52FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52FB8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52FB8#FFFFFF#000000##FFFFFF
##C52FB81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BC
Deuteranopia (green-blind)
#617BB4
Tritanopia (blue-blind)
#CD4172
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c52fb8;
/* rgb */ color: rgb(197, 47, 184);
/* oklch */ color: oklch(58.9% 0.232 332.0);
Tailwind
colors: {
  custom: {
    50: '#db78ce',
    500: '#c52fb8',
    950: '#000000',
  },
}
SCSS
$custom: #c52fb8;
$custom-light: #db78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c52fb8",
  "rgb": {
    "r": 197,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 305.2,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58869,
    "c": 0.23191,
    "h": 332
  },
  "luminance": 0.17364
}

Semantic roles & 50–950 ramp

primary
#C52FB8
secondary
#82CD89
accent
#E55143
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C52FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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