#C52FB1#C52FB1

#C52FB1 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.227 H 334.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C52FB1
RGBrgb(197, 47, 177)
HSLhsl(308, 61%, 48%)
HSVhsv(308, 76%, 77%)
CMYKcmyk(0%, 76.1%, 10.2%, 22.7%)
CIE-LABlab(48.36, 70.34, -35.99)
CIE-LCHlch(48.36, 79.01, 332.90°)
OKLaboklab(58.5% 0.2045 -0.0986)
OKLCHoklch(58.5% 0.227 334.3)
XYZxyz(31.9786, 17.0805, 43.1991)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52FB1 #2FC543
analogous
#8E2FC5 #C52FB1 #C52F66
triadic
#C52FB1 #B1C52F #2FB1C5
tetradic
#C52FB1 #C58E2F #2FC543 #2F66C5
square
#C52FB1 #C58E2F #2FC543 #2F66C5
split-complementary
#C52FB1 #66C52F #2FC58E
monochromatic
#621758 #942385 #C52FB1 #D85AC7 #E38BD8

Accessibility & contrast

On white

4.76
#C52FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#C52FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52FB1
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52FB1#FFFFFF#000000##FFFFFF
##C52FB11.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#657BAE
Tritanopia (blue-blind)
#CE3E6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c52fb1;
/* rgb */ color: rgb(197, 47, 177);
/* oklch */ color: oklch(58.5% 0.227 334.3);
Tailwind
colors: {
  custom: {
    50: '#db78c9',
    500: '#c52fb1',
    950: '#000000',
  },
}
SCSS
$custom: #c52fb1;
$custom-light: #db78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c52fb1",
  "rgb": {
    "r": 197,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 308,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58497,
    "c": 0.22704,
    "h": 334.3
  },
  "luminance": 0.17078
}

Semantic roles & 50–950 ramp

primary
#C52FB1
secondary
#82CD8C
accent
#E55943
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C52FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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