#C42DC9#C42DC9

#C42DC9 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.5% C 0.246 H 326.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#C42DC9
RGBrgb(196, 45, 201)
HSLhsl(298, 63%, 48%)
HSVhsv(298, 78%, 79%)
CMYKcmyk(2.5%, 77.6%, 0%, 21.2%)
CIE-LABlab(49.29, 74.36, -48.51)
CIE-LCHlch(49.29, 88.78, 326.88°)
OKLaboklab(59.55% 0.2052 -0.1349)
OKLCHoklch(59.55% 0.246 326.7)
XYZxyz(34.2454, 17.8320, 56.8852)
Luminance0.1783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42DC9 #32C92D
analogous
#762DC9 #C42DC9 #C92D80
triadic
#C42DC9 #C9C42D #2DC9C4
tetradic
#C42DC9 #C9762D #32C92D #2D80C9
square
#C42DC9 #C9762D #32C92D #2D80C9
split-complementary
#C42DC9 #80C92D #2DC976
monochromatic
#621765 #932297 #C42DC9 #D659DA #E28BE5

Accessibility & contrast

On white

4.60
#C42DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#C42DC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C42DC9
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42DC9#FFFFFF#000000##FFFFFF
##C42DC91.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#567CC5
Tritanopia (blue-blind)
#C9497B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c42dc9;
/* rgb */ color: rgb(196, 45, 201);
/* oklch */ color: oklch(59.5% 0.246 326.7);
Tailwind
colors: {
  custom: {
    50: '#da78da',
    500: '#c42dc9',
    950: '#000000',
  },
}
SCSS
$custom: #c42dc9;
$custom-light: #da78da;
$custom-dark: #000000;
JSON
{
  "hex": "#c42dc9",
  "rgb": {
    "r": 196,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 298.077,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.59546,
    "c": 0.24552,
    "h": 326.7
  },
  "luminance": 0.1783
}

Semantic roles & 50–950 ramp

primary
#C42DC9
secondary
#85CF83
accent
#E64147
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #C42DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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