#C840A1#C840A1

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

Color values

HEX#C840A1
RGBrgb(200, 64, 161)
HSLhsl(317, 55%, 52%)
HSVhsv(317, 68%, 78%)
CMYKcmyk(0%, 68%, 19.5%, 21.6%)
CIE-LABlab(50.12, 63.13, -23.77)
CIE-LCHlch(50.12, 67.46, 339.37°)
OKLaboklab(59.63% 0.1886 -0.0639)
OKLCHoklch(59.63% 0.199 341.3)
XYZxyz(32.0867, 18.5224, 35.5966)
Luminance0.1852 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840A1 #40C867
analogous
#AB40C8 #C840A1 #C8405D
triadic
#C840A1 #A1C840 #40A1C8
tetradic
#C840A1 #C8AB40 #40C867 #405DC8
square
#C840A1 #C8AB40 #40C867 #405DC8
split-complementary
#C840A1 #5DC840 #40C8AB
monochromatic
#6E2057 #9D2D7D #C840A1 #D670B8 #E39FD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C840A1#FFFFFF#000000##000000
##C840A11.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A69A4
Deuteranopia (green-blind)
#747F9E
Tritanopia (blue-blind)
#D4426B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c840a1;
/* rgb */ color: rgb(200, 64, 161);
/* oklch */ color: oklch(59.6% 0.199 341.3);
Tailwind
colors: {
  custom: {
    50: '#dc7fbd',
    500: '#c840a1',
    950: '#000000',
  },
}
SCSS
$custom: #c840a1;
$custom-light: #dc7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c840a1",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 317.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59628,
    "c": 0.19914,
    "h": 341.3
  },
  "luminance": 0.18519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C840A1

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

Preview Lab → · Contrast checker → · Palette generator →

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