#C842D5#C842D5

#C842D5 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.5% C 0.235 H 324.1°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#C842D5
RGBrgb(200, 66, 213)
HSLhsl(295, 64%, 55%)
HSVhsv(295, 69%, 84%)
CMYKcmyk(6.1%, 69%, 0%, 16.5%)
CIE-LABlab(52.93, 70.51, -49.56)
CIE-LCHlch(52.93, 86.18, 324.90°)
OKLaboklab(62.48% 0.1906 -0.138)
OKLCHoklch(62.48% 0.235 324.1)
XYZxyz(37.7768, 20.9822, 64.9981)
Luminance0.2098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842D5 #4FD542
analogous
#7F42D5 #C842D5 #D54298
triadic
#C842D5 #D5C842 #42D5C8
tetradic
#C842D5 #D57F42 #4FD542 #4298D5
square
#C842D5 #D57F42 #4FD542 #4298D5
split-complementary
#C842D5 #98D542 #42D57F
monochromatic
#771C80 #A628B2 #C842D5 #D774E0 #E5A6EB

Accessibility & contrast

On white

4.04
#C842D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#C842D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842D5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842D5#FFFFFF#000000##000000
##C842D51.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1874D9
Deuteranopia (green-blind)
#5C84D1
Tritanopia (blue-blind)
#CC5B87
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c842d5;
/* rgb */ color: rgb(200, 66, 213);
/* oklch */ color: oklch(62.5% 0.235 324.1);
Tailwind
colors: {
  custom: {
    50: '#dc82e2',
    500: '#c842d5',
    950: '#000000',
  },
}
SCSS
$custom: #c842d5;
$custom-light: #dc82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#c842d5",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 294.694,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.62483,
    "c": 0.23526,
    "h": 324.1
  },
  "luminance": 0.2098
}

Semantic roles & 50–950 ramp

primary
#C842D5
secondary
#A0D89A
accent
#E74150
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C842D5

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

Preview Lab → · Contrast checker → · Palette generator →

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