#C52FB2#C52FB2

#C52FB2 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.6% C 0.228 H 333.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#C52FB2
RGBrgb(197, 47, 178)
HSLhsl(308, 61%, 48%)
HSVhsv(308, 76%, 77%)
CMYKcmyk(0%, 76.1%, 9.6%, 22.7%)
CIE-LABlab(48.41, 70.48, -36.50)
CIE-LCHlch(48.41, 79.38, 332.62°)
OKLaboklab(58.55% 0.2046 -0.1001)
OKLCHoklch(58.55% 0.228 333.9)
XYZxyz(32.0787, 17.1205, 43.7260)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52FB2 #2FC542
analogous
#8D2FC5 #C52FB2 #C52F67
triadic
#C52FB2 #B2C52F #2FB2C5
tetradic
#C52FB2 #C58D2F #2FC542 #2F67C5
square
#C52FB2 #C58D2F #2FC542 #2F67C5
split-complementary
#C52FB2 #67C52F #2FC58D
monochromatic
#621759 #942385 #C52FB2 #D85AC8 #E38BD8

Accessibility & contrast

On white

4.75
#C52FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C52FB2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52FB2#FFFFFF#000000##FFFFFF
##C52FB21.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#647BAE
Tritanopia (blue-blind)
#CE3E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c52fb2;
/* rgb */ color: rgb(197, 47, 178);
/* oklch */ color: oklch(58.6% 0.228 333.9);
Tailwind
colors: {
  custom: {
    50: '#db78c9',
    500: '#c52fb2',
    950: '#000000',
  },
}
SCSS
$custom: #c52fb2;
$custom-light: #db78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c52fb2",
  "rgb": {
    "r": 197,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 307.6,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5855,
    "c": 0.22773,
    "h": 333.9
  },
  "luminance": 0.17118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C52FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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