#C840C1#C840C1

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

Color values

HEX#C840C1
RGBrgb(200, 64, 193)
HSLhsl(303, 55%, 52%)
HSVhsv(303, 68%, 78%)
CMYKcmyk(0%, 68%, 3.5%, 21.6%)
CIE-LABlab(51.61, 67.91, -40.17)
CIE-LCHlch(51.61, 78.90, 329.40°)
OKLaboklab(61.19% 0.1923 -0.1107)
OKLCHoklch(61.19% 0.222 330.1)
XYZxyz(35.2783, 19.7990, 52.4053)
Luminance0.1980 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840C1 #40C847
analogous
#8B40C8 #C840C1 #C8407D
triadic
#C840C1 #C1C840 #40C1C8
tetradic
#C840C1 #C88B40 #40C847 #407DC8
square
#C840C1 #C88B40 #40C847 #407DC8
split-complementary
#C840C1 #7DC840 #40C88B
monochromatic
#6E206A #9D2D98 #C840C1 #D670D0 #E39FE0

Accessibility & contrast

On white

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

On black

4.96
#C840C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840C1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840C1#FFFFFF#000000##000000
##C840C11.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#336FC5
Deuteranopia (green-blind)
#6782BE
Tritanopia (blue-blind)
#CF507C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c840c1;
/* rgb */ color: rgb(200, 64, 193);
/* oklch */ color: oklch(61.2% 0.222 330.1);
Tailwind
colors: {
  custom: {
    50: '#dc80d4',
    500: '#c840c1',
    950: '#000000',
  },
}
SCSS
$custom: #c840c1;
$custom-light: #dc80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#c840c1",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 303.088,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61189,
    "c": 0.22186,
    "h": 330.1
  },
  "luminance": 0.19796
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C840C1

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

Preview Lab → · Contrast checker → · Palette generator →

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