#C842C7#C842C7

#C842C7 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.224 H 328.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#C842C7
RGBrgb(200, 66, 199)
HSLhsl(300, 55%, 52%)
HSVhsv(300, 67%, 78%)
CMYKcmyk(0%, 67%, 0.5%, 21.6%)
CIE-LABlab(52.18, 68.15, -42.73)
CIE-LCHlch(52.18, 80.44, 327.91°)
OKLaboklab(61.7% 0.1904 -0.1181)
OKLCHoklch(61.7% 0.224 328.2)
XYZxyz(36.0760, 20.3018, 56.0403)
Luminance0.2030 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C7 #42C843
analogous
#8642C8 #C842C7 #C84284
triadic
#C842C7 #C7C842 #42C7C8
tetradic
#C842C7 #C88642 #42C843 #4284C8
square
#C842C7 #C88642 #42C843 #4284C8
split-complementary
#C842C7 #84C842 #42C886
monochromatic
#6F206F #9F2E9E #C842C7 #D671D5 #E4A1E3

Accessibility & contrast

On white

4.15
#C842C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#C842C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C7#FFFFFF#000000##000000
##C842C71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F71CB
Deuteranopia (green-blind)
#6583C4
Tritanopia (blue-blind)
#CE547F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c7;
/* rgb */ color: rgb(200, 66, 199);
/* oklch */ color: oklch(61.7% 0.224 328.2);
Tailwind
colors: {
  custom: {
    50: '#dc81d8',
    500: '#c842c7',
    950: '#000000',
  },
}
SCSS
$custom: #c842c7;
$custom-light: #dc81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c7",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 300.448,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61698,
    "c": 0.22411,
    "h": 328.2
  },
  "luminance": 0.20299
}

Semantic roles & 50–950 ramp

primary
#C842C7
secondary
#96D096
accent
#DE4B4A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C842C7

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

Preview Lab → · Contrast checker → · Palette generator →

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