#C642A8#C642A8

#C642A8 is a mid, vivid pink. Relative luminance 0.187; OKLCH L 59.8% C 0.200 H 338.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#C642A8
RGBrgb(198, 66, 168)
HSLhsl(314, 54%, 52%)
HSVhsv(314, 67%, 78%)
CMYKcmyk(0%, 66.7%, 15.2%, 22.4%)
CIE-LABlab(50.37, 62.85, -27.54)
CIE-LCHlch(50.37, 68.62, 336.34°)
OKLaboklab(59.85% 0.1855 -0.0746)
OKLCHoklch(59.85% 0.2 338.1)
XYZxyz(32.3054, 18.7322, 38.9525)
Luminance0.1873 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C642A8 #42C660
analogous
#A242C6 #C642A8 #C64266
triadic
#C642A8 #A8C642 #42A8C6
tetradic
#C642A8 #C6A242 #42C660 #4266C6
square
#C642A8 #C6A242 #42C660 #4266C6
split-complementary
#C642A8 #66C642 #42C6A2
monochromatic
#6D215C #9C2F83 #C642A8 #D471BE #E2A0D3

Accessibility & contrast

On white

4.42
#C642A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#C642A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C642A8
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C642A8#FFFFFF#000000##000000
##C642A81.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#476BAB
Deuteranopia (green-blind)
#717FA5
Tritanopia (blue-blind)
#D1486F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c642a8;
/* rgb */ color: rgb(198, 66, 168);
/* oklch */ color: oklch(59.8% 0.200 338.1);
Tailwind
colors: {
  custom: {
    50: '#db80c2',
    500: '#c642a8',
    950: '#000000',
  },
}
SCSS
$custom: #c642a8;
$custom-light: #db80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c642a8",
  "rgb": {
    "r": 198,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 313.636,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59845,
    "c": 0.19994,
    "h": 338.1
  },
  "luminance": 0.18729
}

Semantic roles & 50–950 ramp

primary
#C642A8
secondary
#95CFA2
accent
#DD6C4B
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C642A8

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

Preview Lab → · Contrast checker → · Palette generator →

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