#C842A2#C842A2

#C842A2 is a mid, vivid pink. Relative luminance 0.188; OKLCH L 59.9% C 0.197 H 341.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C842A2
RGBrgb(200, 66, 162)
HSLhsl(317, 55%, 52%)
HSVhsv(317, 67%, 78%)
CMYKcmyk(0%, 67%, 19%, 21.6%)
CIE-LABlab(50.44, 62.51, -23.88)
CIE-LCHlch(50.44, 66.92, 339.09°)
OKLaboklab(59.87% 0.1865 -0.0642)
OKLCHoklch(59.87% 0.197 341)
XYZxyz(32.2901, 18.7875, 36.1012)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842A2 #42C868
analogous
#AB42C8 #C842A2 #C8425F
triadic
#C842A2 #A2C842 #42A2C8
tetradic
#C842A2 #C8AB42 #42C868 #425FC8
square
#C842A2 #C8AB42 #42C868 #425FC8
split-complementary
#C842A2 #5FC842 #42C8AB
monochromatic
#6F2059 #9F2E7F #C842A2 #D671B9 #E4A1D1

Accessibility & contrast

On white

4.41
#C842A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#C842A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842A2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842A2#FFFFFF#000000##000000
##C842A21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#75809F
Tritanopia (blue-blind)
#D4456C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c842a2;
/* rgb */ color: rgb(200, 66, 162);
/* oklch */ color: oklch(59.9% 0.197 341.0);
Tailwind
colors: {
  custom: {
    50: '#dc80bd',
    500: '#c842a2',
    950: '#000000',
  },
}
SCSS
$custom: #c842a2;
$custom-light: #dc80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c842a2",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 317.015,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59871,
    "c": 0.19723,
    "h": 341
  },
  "luminance": 0.18784
}

Semantic roles & 50–950 ramp

primary
#C842A2
secondary
#96D0A6
accent
#DE744A
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C842A2

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

Preview Lab → · Contrast checker → · Palette generator →

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