#C840C2#C840C2

#C840C2 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.2% C 0.223 H 329.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C840C2
RGBrgb(200, 64, 194)
HSLhsl(303, 55%, 52%)
HSVhsv(303, 68%, 78%)
CMYKcmyk(0%, 68%, 3%, 21.6%)
CIE-LABlab(51.66, 68.07, -40.67)
CIE-LCHlch(51.66, 79.29, 329.15°)
OKLaboklab(61.24% 0.1923 -0.1121)
OKLCHoklch(61.24% 0.223 329.8)
XYZxyz(35.3902, 19.8438, 52.9947)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840C2 #40C846
analogous
#8A40C8 #C840C2 #C8407E
triadic
#C840C2 #C2C840 #40C2C8
tetradic
#C840C2 #C88A40 #40C846 #407EC8
square
#C840C2 #C88A40 #40C846 #407EC8
split-complementary
#C840C2 #7EC840 #40C88A
monochromatic
#6E206A #9D2D99 #C840C2 #D670D1 #E39FE0

Accessibility & contrast

On white

4.23
#C840C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C840C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840C2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840C2#FFFFFF#000000##000000
##C840C21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#326FC6
Deuteranopia (green-blind)
#6682BF
Tritanopia (blue-blind)
#CF517C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c840c2;
/* rgb */ color: rgb(200, 64, 194);
/* oklch */ color: oklch(61.2% 0.223 329.8);
Tailwind
colors: {
  custom: {
    50: '#dc80d5',
    500: '#c840c2',
    950: '#000000',
  },
}
SCSS
$custom: #c840c2;
$custom-light: #dc80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c840c2",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 302.647,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61242,
    "c": 0.22262,
    "h": 329.8
  },
  "luminance": 0.19841
}

Semantic roles & 50–950 ramp

primary
#C840C2
secondary
#94D097
accent
#DF5049
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C840C2

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

Preview Lab → · Contrast checker → · Palette generator →

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