#C842D6#C842D6

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

Color values

HEX#C842D6
RGBrgb(200, 66, 214)
HSLhsl(294, 64%, 55%)
HSVhsv(294, 69%, 84%)
CMYKcmyk(6.5%, 69.2%, 0%, 16.1%)
CIE-LABlab(52.99, 70.68, -50.04)
CIE-LCHlch(52.99, 86.60, 324.70°)
OKLaboklab(62.54% 0.1905 -0.1394)
OKLCHoklch(62.54% 0.236 323.8)
XYZxyz(37.9042, 21.0331, 65.6686)
Luminance0.2103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842D6 #50D642
analogous
#7E42D6 #C842D6 #D6429A
triadic
#C842D6 #D6C842 #42D6C8
tetradic
#C842D6 #D67E42 #50D642 #429AD6
square
#C842D6 #D67E42 #50D642 #429AD6
split-complementary
#C842D6 #9AD642 #42D67E
monochromatic
#781C82 #A627B4 #C842D6 #D774E1 #E5A7EC

Accessibility & contrast

On white

4.03
#C842D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#C842D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842D6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842D6#FFFFFF#000000##000000
##C842D61.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1574DA
Deuteranopia (green-blind)
#5B84D2
Tritanopia (blue-blind)
#CC5B88
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c842d6;
/* rgb */ color: rgb(200, 66, 214);
/* oklch */ color: oklch(62.5% 0.236 323.8);
Tailwind
colors: {
  custom: {
    50: '#dd82e3',
    500: '#c842d6',
    950: '#000000',
  },
}
SCSS
$custom: #c842d6;
$custom-light: #dd82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#c842d6",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 294.324,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.62541,
    "c": 0.23608,
    "h": 323.8
  },
  "luminance": 0.21031
}

Semantic roles & 50–950 ramp

primary
#C842D6
secondary
#A1D99B
accent
#E74050
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160B15
muted
#847C84

Preview Lab

Preview with #C842D6

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

Preview Lab → · Contrast checker → · Palette generator →

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