#C840A2#C840A2

#C840A2 is a mid, vivid pink. Relative luminance 0.186; OKLCH L 59.7% C 0.200 H 340.9°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#C840A2
RGBrgb(200, 64, 162)
HSLhsl(317, 55%, 52%)
HSVhsv(317, 68%, 78%)
CMYKcmyk(0%, 68%, 19%, 21.6%)
CIE-LABlab(50.17, 63.27, -24.30)
CIE-LCHlch(50.17, 67.78, 338.99°)
OKLaboklab(59.67% 0.1888 -0.0653)
OKLCHoklch(59.67% 0.2 340.9)
XYZxyz(32.1753, 18.5578, 36.0629)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840A2 #40C866
analogous
#AA40C8 #C840A2 #C8405E
triadic
#C840A2 #A2C840 #40A2C8
tetradic
#C840A2 #C8AA40 #40C866 #405EC8
square
#C840A2 #C8AA40 #40C866 #405EC8
split-complementary
#C840A2 #5EC840 #40C8AA
monochromatic
#6E2058 #9D2D7E #C840A2 #D670B9 #E39FD0

Accessibility & contrast

On white

4.46
#C840A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#C840A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840A2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840A2#FFFFFF#000000##000000
##C840A21.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A69A5
Deuteranopia (green-blind)
#747F9F
Tritanopia (blue-blind)
#D4436B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c840a2;
/* rgb */ color: rgb(200, 64, 162);
/* oklch */ color: oklch(59.7% 0.200 340.9);
Tailwind
colors: {
  custom: {
    50: '#dc7fbd',
    500: '#c840a2',
    950: '#000000',
  },
}
SCSS
$custom: #c840a2;
$custom-light: #dc7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c840a2",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 316.765,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59673,
    "c": 0.19978,
    "h": 340.9
  },
  "luminance": 0.18555
}

Semantic roles & 50–950 ramp

primary
#C840A2
secondary
#94D0A5
accent
#DF7349
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C840A2

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

Preview Lab → · Contrast checker → · Palette generator →

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