#C42EC9#C42EC9

#C42EC9 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.6% C 0.245 H 326.7°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#C42EC9
RGBrgb(196, 46, 201)
HSLhsl(298, 63%, 48%)
HSVhsv(298, 77%, 79%)
CMYKcmyk(2.5%, 77.1%, 0%, 21.2%)
CIE-LABlab(49.39, 74.09, -48.36)
CIE-LCHlch(49.39, 88.47, 326.87°)
OKLaboklab(59.61% 0.2044 -0.1345)
OKLCHoklch(59.61% 0.245 326.7)
XYZxyz(34.2840, 17.9092, 56.8981)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42EC9 #33C92E
analogous
#772EC9 #C42EC9 #C92E80
triadic
#C42EC9 #C9C42E #2EC9C4
tetradic
#C42EC9 #C9772E #33C92E #2E80C9
square
#C42EC9 #C9772E #33C92E #2E80C9
split-complementary
#C42EC9 #80C92E #2EC977
monochromatic
#631765 #932397 #C42EC9 #D55BD9 #E28DE5

Accessibility & contrast

On white

4.58
#C42EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#C42EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C42EC9
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42EC9#FFFFFF#000000##000000
##C42EC91.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c42ec9;
/* rgb */ color: rgb(196, 46, 201);
/* oklch */ color: oklch(59.6% 0.245 326.7);
Tailwind
colors: {
  custom: {
    50: '#da78da',
    500: '#c42ec9',
    950: '#000000',
  },
}
SCSS
$custom: #c42ec9;
$custom-light: #da78da;
$custom-dark: #000000;
JSON
{
  "hex": "#c42ec9",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 298.065,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.59613,
    "c": 0.24465,
    "h": 326.7
  },
  "luminance": 0.17907
}

Semantic roles & 50–950 ramp

primary
#C42EC9
secondary
#86CF84
accent
#E64247
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #C42EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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