#C842A4#C842A4

#C842A4 is a mid, vivid pink. Relative luminance 0.189; OKLCH L 60.0% C 0.199 H 340.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C842A4
RGBrgb(200, 66, 164)
HSLhsl(316, 55%, 52%)
HSVhsv(316, 67%, 78%)
CMYKcmyk(0%, 67%, 18%, 21.6%)
CIE-LABlab(50.52, 62.80, -24.93)
CIE-LCHlch(50.52, 67.56, 338.35°)
OKLaboklab(59.96% 0.1868 -0.0671)
OKLCHoklch(59.96% 0.199 340.2)
XYZxyz(32.4693, 18.8591, 37.0449)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842A4 #42C866
analogous
#A942C8 #C842A4 #C84261
triadic
#C842A4 #A4C842 #42A4C8
tetradic
#C842A4 #C8A942 #42C866 #4261C8
square
#C842A4 #C8A942 #42C866 #4261C8
split-complementary
#C842A4 #61C842 #42C8A9
monochromatic
#6F205A #9F2E80 #C842A4 #D671BB #E4A1D2

Accessibility & contrast

On white

4.40
#C842A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#C842A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842A4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842A4#FFFFFF#000000##000000
##C842A41.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA7
Deuteranopia (green-blind)
#7480A1
Tritanopia (blue-blind)
#D3456D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c842a4;
/* rgb */ color: rgb(200, 66, 164);
/* oklch */ color: oklch(60.0% 0.199 340.2);
Tailwind
colors: {
  custom: {
    50: '#dc80bf',
    500: '#c842a4',
    950: '#000000',
  },
}
SCSS
$custom: #c842a4;
$custom-light: #dc80bf;
$custom-dark: #000000;
JSON
{
  "hex": "#c842a4",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 316.119,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5996,
    "c": 0.19855,
    "h": 340.2
  },
  "luminance": 0.18856
}

Semantic roles & 50–950 ramp

primary
#C842A4
secondary
#96D0A5
accent
#DE714A
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#150B12
muted
#847C81

Preview Lab

Preview with #C842A4

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

Preview Lab → · Contrast checker → · Palette generator →

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