#C842C8#C842C8

#C842C8 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.8% C 0.225 H 327.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#C842C8
RGBrgb(200, 66, 200)
HSLhsl(300, 55%, 52%)
HSVhsv(300, 67%, 78%)
CMYKcmyk(0%, 67%, 0%, 21.6%)
CIE-LABlab(52.23, 68.32, -43.23)
CIE-LCHlch(52.23, 80.84, 327.68°)
OKLaboklab(61.75% 0.1905 -0.1196)
OKLCHoklch(61.75% 0.225 327.9)
XYZxyz(36.1925, 20.3484, 56.6538)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C8 #42C842
analogous
#8542C8 #C842C8 #C84285
triadic
#C842C8 #C8C842 #42C8C8
tetradic
#C842C8 #C88542 #42C842 #4285C8
square
#C842C8 #C88542 #42C842 #4285C8
split-complementary
#C842C8 #85C842 #42C885
monochromatic
#6F206F #9F2E9F #C842C8 #D671D6 #E4A1E4

Accessibility & contrast

On white

4.14
#C842C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#C842C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C8#FFFFFF#000000##000000
##C842C81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E71CC
Deuteranopia (green-blind)
#6483C4
Tritanopia (blue-blind)
#CE5580
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c842c8;
/* rgb */ color: rgb(200, 66, 200);
/* oklch */ color: oklch(61.8% 0.225 327.9);
Tailwind
colors: {
  custom: {
    50: '#dc81d9',
    500: '#c842c8',
    950: '#000000',
  },
}
SCSS
$custom: #c842c8;
$custom-light: #dc81d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c8",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 300,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61753,
    "c": 0.22489,
    "h": 327.9
  },
  "luminance": 0.20346
}

Semantic roles & 50–950 ramp

primary
#C842C8
secondary
#96D096
accent
#DE4A4A
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B15
muted
#847C83

Preview Lab

Preview with #C842C8

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

Preview Lab → · Contrast checker → · Palette generator →

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