#C840C0#C840C0

#C840C0 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.1% C 0.221 H 330.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#C840C0
RGBrgb(200, 64, 192)
HSLhsl(304, 55%, 52%)
HSVhsv(304, 68%, 78%)
CMYKcmyk(0%, 68%, 4%, 21.6%)
CIE-LABlab(51.56, 67.75, -39.67)
CIE-LCHlch(51.56, 78.51, 329.65°)
OKLaboklab(61.14% 0.1922 -0.1093)
OKLCHoklch(61.14% 0.221 330.4)
XYZxyz(35.1671, 19.7546, 51.8197)
Luminance0.1975 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840C0 #40C848
analogous
#8C40C8 #C840C0 #C8407C
triadic
#C840C0 #C0C840 #40C0C8
tetradic
#C840C0 #C88C40 #40C848 #407CC8
square
#C840C0 #C88C40 #40C848 #407CC8
split-complementary
#C840C0 #7CC840 #40C88C
monochromatic
#6E2069 #9D2D97 #C840C0 #D670D0 #E39FDF

Accessibility & contrast

On white

4.24
#C840C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#C840C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840C0
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840C0#FFFFFF#000000##000000
##C840C01.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#346FC4
Deuteranopia (green-blind)
#6781BD
Tritanopia (blue-blind)
#CF507B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c840c0;
/* rgb */ color: rgb(200, 64, 192);
/* oklch */ color: oklch(61.1% 0.221 330.4);
Tailwind
colors: {
  custom: {
    50: '#dc80d3',
    500: '#c840c0',
    950: '#000000',
  },
}
SCSS
$custom: #c840c0;
$custom-light: #dc80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c840c0",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 303.529,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61136,
    "c": 0.2211,
    "h": 330.4
  },
  "luminance": 0.19752
}

Semantic roles & 50–950 ramp

primary
#C840C0
secondary
#94D098
accent
#DF5249
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C840C0

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

Preview Lab → · Contrast checker → · Palette generator →

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