#C840A3#C840A3

#C840A3 is a mid, highly saturated pink. Relative luminance 0.186; OKLCH L 59.7% C 0.200 H 340.5°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#C840A3
RGBrgb(200, 64, 163)
HSLhsl(316, 55%, 52%)
HSVhsv(316, 68%, 78%)
CMYKcmyk(0%, 68%, 18.5%, 21.6%)
CIE-LABlab(50.21, 63.41, -24.82)
CIE-LCHlch(50.21, 68.10, 338.62°)
OKLaboklab(59.72% 0.189 -0.0668)
OKLCHoklch(59.72% 0.2 340.5)
XYZxyz(32.2645, 18.5935, 36.5329)
Luminance0.1859 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840A3 #40C865
analogous
#A940C8 #C840A3 #C8405F
triadic
#C840A3 #A3C840 #40A3C8
tetradic
#C840A3 #C8A940 #40C865 #405FC8
square
#C840A3 #C8A940 #40C865 #405FC8
split-complementary
#C840A3 #5FC840 #40C8A9
monochromatic
#6E2059 #9D2D7F #C840A3 #D670BA #E39FD1

Accessibility & contrast

On white

4.45
#C840A3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#C840A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840A3
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840A3#FFFFFF#000000##000000
##C840A31.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#496AA6
Deuteranopia (green-blind)
#737FA0
Tritanopia (blue-blind)
#D4436C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c840a3;
/* rgb */ color: rgb(200, 64, 163);
/* oklch */ color: oklch(59.7% 0.200 340.5);
Tailwind
colors: {
  custom: {
    50: '#dc7fbe',
    500: '#c840a3',
    950: '#000000',
  },
}
SCSS
$custom: #c840a3;
$custom-light: #dc7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#c840a3",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 316.324,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59717,
    "c": 0.20043,
    "h": 340.5
  },
  "luminance": 0.1859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C840A3

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

Preview Lab → · Contrast checker → · Palette generator →

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