#C842C1#C842C1

#C842C1 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.219 H 330.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#C842C1
RGBrgb(200, 66, 193)
HSLhsl(303, 55%, 52%)
HSVhsv(303, 67%, 78%)
CMYKcmyk(0%, 67%, 3.5%, 21.6%)
CIE-LABlab(51.87, 67.18, -39.76)
CIE-LCHlch(51.87, 78.06, 329.38°)
OKLaboklab(61.38% 0.1902 -0.1095)
OKLCHoklch(61.38% 0.219 330.1)
XYZxyz(35.3931, 20.0287, 52.4435)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C1 #42C849
analogous
#8C42C8 #C842C1 #C8427E
triadic
#C842C1 #C1C842 #42C1C8
tetradic
#C842C1 #C88C42 #42C849 #427EC8
square
#C842C1 #C88C42 #42C849 #427EC8
split-complementary
#C842C1 #7EC842 #42C88C
monochromatic
#6F206B #9F2E99 #C842C1 #D671D1 #E4A1E0

Accessibility & contrast

On white

4.20
#C842C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#C842C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C1#FFFFFF#000000##000000
##C842C11.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3570C5
Deuteranopia (green-blind)
#6882BE
Tritanopia (blue-blind)
#CF527C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c1;
/* rgb */ color: rgb(200, 66, 193);
/* oklch */ color: oklch(61.4% 0.219 330.1);
Tailwind
colors: {
  custom: {
    50: '#dc81d4',
    500: '#c842c1',
    950: '#000000',
  },
}
SCSS
$custom: #c842c1;
$custom-light: #dc81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c1",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 303.134,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61377,
    "c": 0.21945,
    "h": 330.1
  },
  "luminance": 0.20026
}

Semantic roles & 50–950 ramp

primary
#C842C1
secondary
#96D099
accent
#DE514A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C842C1

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

Preview Lab → · Contrast checker → · Palette generator →

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