#C842C2#C842C2

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

Color values

HEX#C842C2
RGBrgb(200, 66, 194)
HSLhsl(303, 55%, 52%)
HSVhsv(303, 67%, 78%)
CMYKcmyk(0%, 67%, 3%, 21.6%)
CIE-LABlab(51.92, 67.34, -40.26)
CIE-LCHlch(51.92, 78.45, 329.13°)
OKLaboklab(61.43% 0.1902 -0.111)
OKLCHoklch(61.43% 0.22 329.7)
XYZxyz(35.5050, 20.0734, 53.0330)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C2 #42C848
analogous
#8B42C8 #C842C2 #C8427F
triadic
#C842C2 #C2C842 #42C2C8
tetradic
#C842C2 #C88B42 #42C848 #427FC8
square
#C842C2 #C88B42 #42C848 #427FC8
split-complementary
#C842C2 #7FC842 #42C88B
monochromatic
#6F206C #9F2E9A #C842C2 #D671D1 #E4A1E1

Accessibility & contrast

On white

4.19
#C842C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C842C2#FFFFFF#000000##000000
##C842C21.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3470C6
Deuteranopia (green-blind)
#6782BF
Tritanopia (blue-blind)
#CF527D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c2;
/* rgb */ color: rgb(200, 66, 194);
/* oklch */ color: oklch(61.4% 0.220 329.7);
Tailwind
colors: {
  custom: {
    50: '#dc81d5',
    500: '#c842c2',
    950: '#000000',
  },
}
SCSS
$custom: #c842c2;
$custom-light: #dc81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c2",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 302.687,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.6143,
    "c": 0.22022,
    "h": 329.7
  },
  "luminance": 0.20071
}

Semantic roles & 50–950 ramp

primary
#C842C2
secondary
#96D098
accent
#DE504A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C842C2

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

Preview Lab → · Contrast checker → · Palette generator →

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