#C842D2#C842D2

#C842D2 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.3% C 0.233 H 324.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#C842D2
RGBrgb(200, 66, 210)
HSLhsl(296, 62%, 54%)
HSVhsv(296, 69%, 82%)
CMYKcmyk(4.8%, 68.6%, 0%, 17.6%)
CIE-LABlab(52.76, 69.99, -48.11)
CIE-LCHlch(52.76, 84.93, 325.50°)
OKLaboklab(62.31% 0.1906 -0.1338)
OKLCHoklch(62.31% 0.233 324.9)
XYZxyz(37.3996, 20.8313, 63.0112)
Luminance0.2083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842D2 #4CD242
analogous
#8042D2 #C842D2 #D24294
triadic
#C842D2 #D2C842 #42D2C8
tetradic
#C842D2 #D28042 #4CD242 #4294D2
square
#C842D2 #D28042 #4CD242 #4294D2
split-complementary
#C842D2 #94D242 #42D280
monochromatic
#751E7C #A429AD #C842D2 #D673DE #E5A5EA

Accessibility & contrast

On white

4.07
#C842D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#C842D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842D2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842D2#FFFFFF#000000##000000
##C842D21.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E73D6
Deuteranopia (green-blind)
#5E84CE
Tritanopia (blue-blind)
#CC5985
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c842d2;
/* rgb */ color: rgb(200, 66, 210);
/* oklch */ color: oklch(62.3% 0.233 324.9);
Tailwind
colors: {
  custom: {
    50: '#dc82e0',
    500: '#c842d2',
    950: '#000000',
  },
}
SCSS
$custom: #c842d2;
$custom-light: #dc82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c842d2",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 295.833,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.62311,
    "c": 0.23284,
    "h": 324.9
  },
  "luminance": 0.20829
}

Semantic roles & 50–950 ramp

primary
#C842D2
secondary
#9ED799
accent
#E5434E
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C842D2

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

Preview Lab → · Contrast checker → · Palette generator →

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