#C842AB#C842AB

#C842AB is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.3% C 0.203 H 337.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#C842AB
RGBrgb(200, 66, 171)
HSLhsl(313, 55%, 52%)
HSVhsv(313, 67%, 78%)
CMYKcmyk(0%, 67%, 14.5%, 21.6%)
CIE-LABlab(50.83, 63.80, -28.58)
CIE-LCHlch(50.83, 69.91, 335.87°)
OKLaboklab(60.28% 0.188 -0.0775)
OKLCHoklch(60.28% 0.203 337.6)
XYZxyz(33.1189, 19.1190, 40.4663)
Luminance0.1912 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842AB #42C85F
analogous
#A242C8 #C842AB #C84268
triadic
#C842AB #ABC842 #42ABC8
tetradic
#C842AB #C8A242 #42C85F #4268C8
square
#C842AB #C8A242 #42C85F #4268C8
split-complementary
#C842AB #68C842 #42C8A2
monochromatic
#6F205E #9F2E86 #C842AB #D671C0 #E4A1D5

Accessibility & contrast

On white

4.35
#C842AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#C842AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842AB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842AB#FFFFFF#000000##000000
##C842AB1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#466CAE
Deuteranopia (green-blind)
#7181A8
Tritanopia (blue-blind)
#D34871
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c842ab;
/* rgb */ color: rgb(200, 66, 171);
/* oklch */ color: oklch(60.3% 0.203 337.6);
Tailwind
colors: {
  custom: {
    50: '#dc80c4',
    500: '#c842ab',
    950: '#000000',
  },
}
SCSS
$custom: #c842ab;
$custom-light: #dc80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c842ab",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 312.985,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60281,
    "c": 0.20329,
    "h": 337.6
  },
  "luminance": 0.19116
}

Semantic roles & 50–950 ramp

primary
#C842AB
secondary
#96D0A2
accent
#DE6A4A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B12
muted
#847C81

Preview Lab

Preview with #C842AB

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

Preview Lab → · Contrast checker → · Palette generator →

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