#C840A0#C840A0

#C840A0 is a mid, vivid pink. Relative luminance 0.185; OKLCH L 59.6% C 0.199 H 341.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#C840A0
RGBrgb(200, 64, 160)
HSLhsl(318, 55%, 52%)
HSVhsv(318, 68%, 78%)
CMYKcmyk(0%, 68%, 20%, 21.6%)
CIE-LABlab(50.08, 63.00, -23.24)
CIE-LCHlch(50.08, 67.15, 339.75°)
OKLaboklab(59.58% 0.1884 -0.0624)
OKLCHoklch(59.58% 0.199 341.7)
XYZxyz(31.9989, 18.4873, 35.1341)
Luminance0.1848 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840A0 #40C868
analogous
#AC40C8 #C840A0 #C8405C
triadic
#C840A0 #A0C840 #40A0C8
tetradic
#C840A0 #C8AC40 #40C868 #405CC8
square
#C840A0 #C8AC40 #40C868 #405CC8
split-complementary
#C840A0 #5CC840 #40C8AC
monochromatic
#6E2057 #9D2D7C #C840A0 #D670B8 #E39FCF

Accessibility & contrast

On white

4.47
#C840A0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#C840A0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840A0
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840A0#FFFFFF#000000##000000
##C840A01.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B69A3
Deuteranopia (green-blind)
#747F9D
Tritanopia (blue-blind)
#D4426A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c840a0;
/* rgb */ color: rgb(200, 64, 160);
/* oklch */ color: oklch(59.6% 0.199 341.7);
Tailwind
colors: {
  custom: {
    50: '#dc7fbc',
    500: '#c840a0',
    950: '#000000',
  },
}
SCSS
$custom: #c840a0;
$custom-light: #dc7fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#c840a0",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 317.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59584,
    "c": 0.1985,
    "h": 341.7
  },
  "luminance": 0.18484
}

Semantic roles & 50–950 ramp

primary
#C840A0
secondary
#94D0A6
accent
#DF7549
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C840A0

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

Preview Lab → · Contrast checker → · Palette generator →

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