#C842A8#C842A8

#C842A8 is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.1% C 0.201 H 338.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C842A8
RGBrgb(200, 66, 168)
HSLhsl(314, 55%, 52%)
HSVhsv(314, 67%, 78%)
CMYKcmyk(0%, 67%, 16%, 21.6%)
CIE-LABlab(50.69, 63.36, -27.02)
CIE-LCHlch(50.69, 68.88, 336.91°)
OKLaboklab(60.14% 0.1875 -0.073)
OKLCHoklch(60.14% 0.201 338.7)
XYZxyz(32.8362, 19.0059, 38.9773)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842A8 #42C862
analogous
#A542C8 #C842A8 #C84265
triadic
#C842A8 #A8C842 #42A8C8
tetradic
#C842A8 #C8A542 #42C862 #4265C8
square
#C842A8 #C8A542 #42C862 #4265C8
split-complementary
#C842A8 #65C842 #42C8A5
monochromatic
#6F205C #9F2E84 #C842A8 #D671BE #E4A1D4

Accessibility & contrast

On white

4.37
#C842A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#C842A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842A8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842A8#FFFFFF#000000##000000
##C842A81.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#486BAB
Deuteranopia (green-blind)
#7280A5
Tritanopia (blue-blind)
#D3476F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c842a8;
/* rgb */ color: rgb(200, 66, 168);
/* oklch */ color: oklch(60.1% 0.201 338.7);
Tailwind
colors: {
  custom: {
    50: '#dc80c2',
    500: '#c842a8',
    950: '#000000',
  },
}
SCSS
$custom: #c842a8;
$custom-light: #dc80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c842a8",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 314.328,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60142,
    "c": 0.20123,
    "h": 338.7
  },
  "luminance": 0.19003
}

Semantic roles & 50–950 ramp

primary
#C842A8
secondary
#96D0A4
accent
#DE6D4A
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#150B12
muted
#847C81

Preview Lab

Preview with #C842A8

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

Preview Lab → · Contrast checker → · Palette generator →

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