#C842C5#C842C5

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

Color values

HEX#C842C5
RGBrgb(200, 66, 197)
HSLhsl(301, 55%, 52%)
HSVhsv(301, 67%, 78%)
CMYKcmyk(0%, 67%, 1.5%, 21.6%)
CIE-LABlab(52.07, 67.82, -41.74)
CIE-LCHlch(52.07, 79.64, 328.39°)
OKLaboklab(61.59% 0.1904 -0.1153)
OKLCHoklch(61.59% 0.223 328.8)
XYZxyz(35.8453, 20.2096, 54.8254)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842C5 #42C845
analogous
#8842C8 #C842C5 #C84282
triadic
#C842C5 #C5C842 #42C5C8
tetradic
#C842C5 #C88842 #42C845 #4282C8
square
#C842C5 #C88842 #42C845 #4282C8
split-complementary
#C842C5 #82C842 #42C888
monochromatic
#6F206D #9F2E9C #C842C5 #D671D4 #E4A1E2

Accessibility & contrast

On white

4.17
#C842C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#C842C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842C5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842C5#FFFFFF#000000##000000
##C842C51.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3171C9
Deuteranopia (green-blind)
#6682C2
Tritanopia (blue-blind)
#CF547E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c842c5;
/* rgb */ color: rgb(200, 66, 197);
/* oklch */ color: oklch(61.6% 0.223 328.8);
Tailwind
colors: {
  custom: {
    50: '#dc81d7',
    500: '#c842c5',
    950: '#000000',
  },
}
SCSS
$custom: #c842c5;
$custom-light: #dc81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#c842c5",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 301.343,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.6159,
    "c": 0.22255,
    "h": 328.8
  },
  "luminance": 0.20207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C842C5

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

Preview Lab → · Contrast checker → · Palette generator →

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