#C840A4#C840A4

#C840A4 is a mid, highly saturated pink. Relative luminance 0.186; OKLCH L 59.8% C 0.201 H 340.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C840A4
RGBrgb(200, 64, 164)
HSLhsl(316, 55%, 52%)
HSVhsv(316, 68%, 78%)
CMYKcmyk(0%, 68%, 18%, 21.6%)
CIE-LABlab(50.25, 63.55, -25.35)
CIE-LCHlch(50.25, 68.42, 338.25°)
OKLaboklab(59.76% 0.1891 -0.0683)
OKLCHoklch(59.76% 0.201 340.1)
XYZxyz(32.3545, 18.6295, 37.0066)
Luminance0.1863 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840A4 #40C864
analogous
#A840C8 #C840A4 #C84060
triadic
#C840A4 #A4C840 #40A4C8
tetradic
#C840A4 #C8A840 #40C864 #4060C8
square
#C840A4 #C8A840 #40C864 #4060C8
split-complementary
#C840A4 #60C840 #40C8A8
monochromatic
#6E2059 #9D2D80 #C840A4 #D670BB #E39FD1

Accessibility & contrast

On white

4.44
#C840A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C840A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840A4
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840A4#FFFFFF#000000##000000
##C840A41.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#496AA7
Deuteranopia (green-blind)
#737FA1
Tritanopia (blue-blind)
#D3446C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c840a4;
/* rgb */ color: rgb(200, 64, 164);
/* oklch */ color: oklch(59.8% 0.201 340.1);
Tailwind
colors: {
  custom: {
    50: '#dc7fbf',
    500: '#c840a4',
    950: '#000000',
  },
}
SCSS
$custom: #c840a4;
$custom-light: #dc7fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#c840a4",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 315.882,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59763,
    "c": 0.20109,
    "h": 340.1
  },
  "luminance": 0.18626
}

Semantic roles & 50–950 ramp

primary
#C840A4
secondary
#94D0A4
accent
#DF7149
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C840A4

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

Preview Lab → · Contrast checker → · Palette generator →

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