#C842C6#C842C6

#C842C6 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.6% C 0.223 H 328.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#C842C6
RGBrgb(200, 66, 198)
HSLhsl(301, 55%, 52%)
HSVhsv(301, 67%, 78%)
CMYKcmyk(0%, 67%, 1%, 21.6%)
CIE-LABlab(52.12, 67.99, -42.24)
CIE-LCHlch(52.12, 80.04, 328.15°)
OKLaboklab(61.64% 0.1904 -0.1167)
OKLCHoklch(61.64% 0.223 328.5)
XYZxyz(35.9603, 20.2555, 55.4308)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C6 #42C844
analogous
#8742C8 #C842C6 #C84283
triadic
#C842C6 #C6C842 #42C6C8
tetradic
#C842C6 #C88742 #42C844 #4283C8
square
#C842C6 #C88742 #42C844 #4283C8
split-complementary
#C842C6 #83C842 #42C887
monochromatic
#6F206E #9F2E9D #C842C6 #D671D4 #E4A1E3

Accessibility & contrast

On white

4.16
#C842C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#C842C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C6#FFFFFF#000000##000000
##C842C61.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3071CA
Deuteranopia (green-blind)
#6583C3
Tritanopia (blue-blind)
#CE547F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c6;
/* rgb */ color: rgb(200, 66, 198);
/* oklch */ color: oklch(61.6% 0.223 328.5);
Tailwind
colors: {
  custom: {
    50: '#dc81d8',
    500: '#c842c6',
    950: '#000000',
  },
}
SCSS
$custom: #c842c6;
$custom-light: #dc81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c6",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 300.896,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61644,
    "c": 0.22332,
    "h": 328.5
  },
  "luminance": 0.20253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C842C6

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

Preview Lab → · Contrast checker → · Palette generator →

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