#C842C4#C842C4

#C842C4 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.5% C 0.222 H 329.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C842C4
RGBrgb(200, 66, 196)
HSLhsl(302, 55%, 52%)
HSVhsv(302, 67%, 78%)
CMYKcmyk(0%, 67%, 2%, 21.6%)
CIE-LABlab(52.02, 67.66, -41.25)
CIE-LCHlch(52.02, 79.24, 328.63°)
OKLaboklab(61.54% 0.1903 -0.1138)
OKLCHoklch(61.54% 0.222 329.1)
XYZxyz(35.7311, 20.1639, 54.2239)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C4 #42C846
analogous
#8942C8 #C842C4 #C84281
triadic
#C842C4 #C4C842 #42C4C8
tetradic
#C842C4 #C88942 #42C846 #4281C8
square
#C842C4 #C88942 #42C846 #4281C8
split-complementary
#C842C4 #81C842 #42C889
monochromatic
#6F206D #9F2E9B #C842C4 #D671D3 #E4A1E2

Accessibility & contrast

On white

4.17
#C842C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#C842C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C4
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C4#FFFFFF#000000##000000
##C842C41.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3271C8
Deuteranopia (green-blind)
#6682C1
Tritanopia (blue-blind)
#CF537E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c4;
/* rgb */ color: rgb(200, 66, 196);
/* oklch */ color: oklch(61.5% 0.222 329.1);
Tailwind
colors: {
  custom: {
    50: '#dc81d6',
    500: '#c842c4',
    950: '#000000',
  },
}
SCSS
$custom: #c842c4;
$custom-light: #dc81d6;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c4",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 301.791,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61537,
    "c": 0.22177,
    "h": 329.1
  },
  "luminance": 0.20161
}

Semantic roles & 50–950 ramp

primary
#C842C4
secondary
#96D097
accent
#DE4E4A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C842C4

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

Preview Lab → · Contrast checker → · Palette generator →

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