#C842CC#C842CC

#C842CC is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 62.0% C 0.228 H 326.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#C842CC
RGBrgb(200, 66, 204)
HSLhsl(298, 58%, 53%)
HSVhsv(298, 68%, 80%)
CMYKcmyk(2%, 67.6%, 0%, 20%)
CIE-LABlab(52.44, 68.98, -45.19)
CIE-LCHlch(52.44, 82.46, 326.77°)
OKLaboklab(61.97% 0.1906 -0.1253)
OKLCHoklch(61.97% 0.228 326.7)
XYZxyz(36.6661, 20.5379, 59.1480)
Luminance0.2054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842CC #46CC42
analogous
#8342CC #C842CC #CC428B
triadic
#C842CC #CCC842 #42CCC8
tetradic
#C842CC #CC8342 #46CC42 #428BCC
square
#C842CC #CC8342 #46CC42 #428BCC
split-complementary
#C842CC #8BCC42 #42CC83
monochromatic
#721F74 #A12CA4 #C842CC #D672D9 #E4A2E6

Accessibility & contrast

On white

4.11
#C842CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#C842CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842CC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842CC#FFFFFF#000000##000000
##C842CC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2872D0
Deuteranopia (green-blind)
#6283C8
Tritanopia (blue-blind)
#CD5782
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c842cc;
/* rgb */ color: rgb(200, 66, 204);
/* oklch */ color: oklch(62.0% 0.228 326.7);
Tailwind
colors: {
  custom: {
    50: '#dc81dc',
    500: '#c842cc',
    950: '#000000',
  },
}
SCSS
$custom: #c842cc;
$custom-light: #dc81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c842cc",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 298.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61973,
    "c": 0.22805,
    "h": 326.7
  },
  "luminance": 0.20535
}

Semantic roles & 50–950 ramp

primary
#C842CC
secondary
#99D397
accent
#E1474C
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#150B15
muted
#847C83

Preview Lab

Preview with #C842CC

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

Preview Lab → · Contrast checker → · Palette generator →

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