#C842AF#C842AF

#C842AF is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.5% C 0.206 H 336.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#C842AF
RGBrgb(200, 66, 175)
HSLhsl(311, 55%, 52%)
HSVhsv(311, 67%, 78%)
CMYKcmyk(0%, 67%, 12.5%, 21.6%)
CIE-LABlab(51.01, 64.39, -30.64)
CIE-LCHlch(51.01, 71.31, 334.55°)
OKLaboklab(60.47% 0.1885 -0.0834)
OKLCHoklch(60.47% 0.206 336.1)
XYZxyz(33.5059, 19.2738, 42.5047)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C842AF #42C85B
analogous
#9E42C8 #C842AF #C8426C
triadic
#C842AF #AFC842 #42AFC8
tetradic
#C842AF #C89E42 #42C85B #426CC8
square
#C842AF #C89E42 #42C85B #426CC8
split-complementary
#C842AF #6CC842 #42C89E
monochromatic
#6F2061 #9F2E8A #C842AF #D671C3 #E4A1D7

Accessibility & contrast

On white

4.33
#C842AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#C842AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C842AF
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C842AF#FFFFFF#000000##000000
##C842AF1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#446DB2
Deuteranopia (green-blind)
#7081AC
Tritanopia (blue-blind)
#D24A73
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c842af;
/* rgb */ color: rgb(200, 66, 175);
/* oklch */ color: oklch(60.5% 0.206 336.1);
Tailwind
colors: {
  custom: {
    50: '#dc81c7',
    500: '#c842af',
    950: '#000000',
  },
}
SCSS
$custom: #c842af;
$custom-light: #dc81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c842af",
  "rgb": {
    "r": 200,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 311.194,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60471,
    "c": 0.20611,
    "h": 336.1
  },
  "luminance": 0.19271
}

Semantic roles & 50–950 ramp

primary
#C842AF
secondary
#96D0A1
accent
#DE654A
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82

Preview Lab

Preview with #C842AF

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

Preview Lab → · Contrast checker → · Palette generator →

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