#C842A1#C842A1

#C842A1 is a mid, vivid pink. Relative luminance 0.187; OKLCH L 59.8% C 0.197 H 341.4°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#C842A1
RGBrgb(200, 66, 161)
HSLhsl(317, 55%, 52%)
HSVhsv(317, 67%, 78%)
CMYKcmyk(0%, 67%, 19.5%, 21.6%)
CIE-LABlab(50.40, 62.38, -23.35)
CIE-LCHlch(50.40, 66.60, 339.48°)
OKLaboklab(59.83% 0.1863 -0.0627)
OKLCHoklch(59.83% 0.197 341.4)
XYZxyz(32.2016, 18.7521, 35.6349)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842A1 #42C869
analogous
#AC42C8 #C842A1 #C8425E
triadic
#C842A1 #A1C842 #42A1C8
tetradic
#C842A1 #C8AC42 #42C869 #425EC8
square
#C842A1 #C8AC42 #42C869 #425EC8
split-complementary
#C842A1 #5EC842 #42C8AC
monochromatic
#6F2058 #9F2E7E #C842A1 #D671B9 #E4A1D0

Accessibility & contrast

On white

4.42
#C842A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#C842A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842A1
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842A1#FFFFFF#000000##000000
##C842A11.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA4
Deuteranopia (green-blind)
#75809E
Tritanopia (blue-blind)
#D4446C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c842a1;
/* rgb */ color: rgb(200, 66, 161);
/* oklch */ color: oklch(59.8% 0.197 341.4);
Tailwind
colors: {
  custom: {
    50: '#dc80bd',
    500: '#c842a1',
    950: '#000000',
  },
}
SCSS
$custom: #c842a1;
$custom-light: #dc80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c842a1",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 317.463,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59827,
    "c": 0.19659,
    "h": 341.4
  },
  "luminance": 0.18749
}

Semantic roles & 50–950 ramp

primary
#C842A1
secondary
#96D0A7
accent
#DE754A
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C842A1

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

Preview Lab → · Contrast checker → · Palette generator →

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