#C842A5#C842A5

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

Color values

HEX#C842A5
RGBrgb(200, 66, 165)
HSLhsl(316, 55%, 52%)
HSVhsv(316, 67%, 78%)
CMYKcmyk(0%, 67%, 17.5%, 21.6%)
CIE-LABlab(50.56, 62.94, -25.45)
CIE-LCHlch(50.56, 67.89, 337.98°)
OKLaboklab(60.01% 0.187 -0.0686)
OKLCHoklch(60.01% 0.199 339.9)
XYZxyz(32.5599, 18.8954, 37.5224)
Luminance0.1889 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842A5 #42C865
analogous
#A842C8 #C842A5 #C84262
triadic
#C842A5 #A5C842 #42A5C8
tetradic
#C842A5 #C8A842 #42C865 #4262C8
square
#C842A5 #C8A842 #42C865 #4262C8
split-complementary
#C842A5 #62C842 #42C8A8
monochromatic
#6F205B #9F2E81 #C842A5 #D671BC #E4A1D2

Accessibility & contrast

On white

4.39
#C842A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#C842A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842A5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842A5#FFFFFF#000000##000000
##C842A51.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6BA8
Deuteranopia (green-blind)
#7480A2
Tritanopia (blue-blind)
#D3466E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c842a5;
/* rgb */ color: rgb(200, 66, 165);
/* oklch */ color: oklch(60.0% 0.199 339.9);
Tailwind
colors: {
  custom: {
    50: '#dc80c0',
    500: '#c842a5',
    950: '#000000',
  },
}
SCSS
$custom: #c842a5;
$custom-light: #dc80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#c842a5",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 315.672,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60005,
    "c": 0.19921,
    "h": 339.9
  },
  "luminance": 0.18892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C842A5

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

Preview Lab → · Contrast checker → · Palette generator →

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