#C42DC7#C42DC7

#C42DC7 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.4% C 0.244 H 327.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C42DC7
RGBrgb(196, 45, 199)
HSLhsl(299, 63%, 48%)
HSVhsv(299, 77%, 78%)
CMYKcmyk(1.5%, 77.4%, 0%, 22%)
CIE-LABlab(49.18, 74.04, -47.54)
CIE-LCHlch(49.18, 87.99, 327.30°)
OKLaboklab(59.43% 0.2053 -0.132)
OKLCHoklch(59.43% 0.244 327.2)
XYZxyz(34.0116, 17.7385, 55.6543)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42DC7 #30C72D
analogous
#772DC7 #C42DC7 #C72D7D
triadic
#C42DC7 #C7C42D #2DC7C4
tetradic
#C42DC7 #C7772D #30C72D #2D7DC7
square
#C42DC7 #C7772D #30C72D #2D7DC7
split-complementary
#C42DC7 #7DC72D #2DC777
monochromatic
#621663 #932295 #C42DC7 #D758D9 #E38AE5

Accessibility & contrast

On white

4.62
#C42DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#C42DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C42DC7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42DC7#FFFFFF#000000##FFFFFF
##C42DC71.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#577BC3
Tritanopia (blue-blind)
#CA487A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c42dc7;
/* rgb */ color: rgb(196, 45, 199);
/* oklch */ color: oklch(59.4% 0.244 327.2);
Tailwind
colors: {
  custom: {
    50: '#da78d8',
    500: '#c42dc7',
    950: '#000000',
  },
}
SCSS
$custom: #c42dc7;
$custom-light: #da78d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c42dc7",
  "rgb": {
    "r": 196,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 298.831,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.59428,
    "c": 0.24406,
    "h": 327.2
  },
  "luminance": 0.17736
}

Semantic roles & 50–950 ramp

primary
#C42DC7
secondary
#83CE81
accent
#E64245
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #C42DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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