#C52EB5#C52EB5

#C52EB5 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.6% C 0.231 H 333.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#C52EB5
RGBrgb(197, 46, 181)
HSLhsl(306, 62%, 48%)
HSVhsv(306, 77%, 77%)
CMYKcmyk(0%, 76.6%, 8.1%, 22.7%)
CIE-LABlab(48.47, 71.21, -38.18)
CIE-LCHlch(48.47, 80.80, 331.80°)
OKLaboklab(58.64% 0.2055 -0.1049)
OKLCHoklch(58.64% 0.231 333)
XYZxyz(32.3436, 17.1633, 45.3165)
Luminance0.1716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C52EB5 #2EC53E
analogous
#8A2EC5 #C52EB5 #C52E69
triadic
#C52EB5 #B5C52E #2EB5C5
tetradic
#C52EB5 #C58A2E #2EC53E #2E69C5
square
#C52EB5 #C58A2E #2EC53E #2E69C5
split-complementary
#C52EB5 #69C52E #2EC58A
monochromatic
#62175A #932287 #C52EB5 #D858CA #E48ADA

Accessibility & contrast

On white

4.74
#C52EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#C52EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C52EB5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C52EB5#FFFFFF#000000##FFFFFF
##C52EB51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B9
Deuteranopia (green-blind)
#627BB1
Tritanopia (blue-blind)
#CE3F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c52eb5;
/* rgb */ color: rgb(197, 46, 181);
/* oklch */ color: oklch(58.6% 0.231 333.0);
Tailwind
colors: {
  custom: {
    50: '#db78cb',
    500: '#c52eb5',
    950: '#000000',
  },
}
SCSS
$custom: #c52eb5;
$custom-light: #db78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c52eb5",
  "rgb": {
    "r": 197,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 306.358,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58637,
    "c": 0.23076,
    "h": 333
  },
  "luminance": 0.17161
}

Semantic roles & 50–950 ramp

primary
#C52EB5
secondary
#81CE89
accent
#E55443
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C52EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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