#C840D1#C840D1

#C840D1 is a light, highly saturated purple. Relative luminance 0.205; OKLCH L 62.1% C 0.234 H 325.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#C840D1
RGBrgb(200, 64, 209)
HSLhsl(296, 61%, 54%)
HSVhsv(296, 69%, 82%)
CMYKcmyk(4.3%, 69.4%, 0%, 18%)
CIE-LABlab(52.46, 70.54, -48.03)
CIE-LCHlch(52.46, 85.34, 325.75°)
OKLaboklab(62.07% 0.1926 -0.1335)
OKLCHoklch(62.07% 0.234 325.3)
XYZxyz(37.1606, 20.5520, 62.3189)
Luminance0.2055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840D1 #49D140
analogous
#7F40D1 #C840D1 #D14091
triadic
#C840D1 #D1C840 #40D1C8
tetradic
#C840D1 #D17F40 #49D140 #4091D1
square
#C840D1 #D17F40 #49D140 #4091D1
split-complementary
#C840D1 #91D140 #40D17F
monochromatic
#741D79 #A329AB #C840D1 #D671DD #E4A3E9

Accessibility & contrast

On white

4.11
#C840D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#C840D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840D1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840D1#FFFFFF#000000##000000
##C840D11.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C72D5
Deuteranopia (green-blind)
#5E83CD
Tritanopia (blue-blind)
#CD5884
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c840d1;
/* rgb */ color: rgb(200, 64, 209);
/* oklch */ color: oklch(62.1% 0.234 325.3);
Tailwind
colors: {
  custom: {
    50: '#dc81e0',
    500: '#c840d1',
    950: '#000000',
  },
}
SCSS
$custom: #c840d1;
$custom-light: #dc81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c840d1",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 296.276,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62071,
    "c": 0.23434,
    "h": 325.3
  },
  "luminance": 0.2055
}

Semantic roles & 50–950 ramp

primary
#C840D1
secondary
#9BD597
accent
#E4444D
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C840D1

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

Preview Lab → · Contrast checker → · Palette generator →

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