#C840D4#C840D4

#C840D4 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.2% C 0.237 H 324.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C840D4
RGBrgb(200, 64, 212)
HSLhsl(295, 63%, 54%)
HSVhsv(295, 70%, 83%)
CMYKcmyk(5.7%, 69.8%, 0%, 16.9%)
CIE-LABlab(52.62, 71.05, -49.48)
CIE-LCHlch(52.62, 86.58, 325.15°)
OKLaboklab(62.24% 0.1925 -0.1377)
OKLCHoklch(62.24% 0.237 324.4)
XYZxyz(37.5355, 20.7019, 64.2934)
Luminance0.2070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840D4 #4CD440
analogous
#7E40D4 #C840D4 #D44096
triadic
#C840D4 #D4C840 #40D4C8
tetradic
#C840D4 #D47E40 #4CD440 #4096D4
square
#C840D4 #D47E40 #4CD440 #4096D4
split-complementary
#C840D4 #96D440 #40D47E
monochromatic
#751C7D #A427AF #C840D4 #D672DF #E5A4EA

Accessibility & contrast

On white

4.09
#C840D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#C840D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840D4
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840D4#FFFFFF#000000##000000
##C840D41.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1473D8
Deuteranopia (green-blind)
#5C83D0
Tritanopia (blue-blind)
#CC5986
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c840d4;
/* rgb */ color: rgb(200, 64, 212);
/* oklch */ color: oklch(62.2% 0.237 324.4);
Tailwind
colors: {
  custom: {
    50: '#dd81e2',
    500: '#c840d4',
    950: '#000000',
  },
}
SCSS
$custom: #c840d4;
$custom-light: #dd81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#c840d4",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 295.135,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.62244,
    "c": 0.23673,
    "h": 324.4
  },
  "luminance": 0.207
}

Semantic roles & 50–950 ramp

primary
#C840D4
secondary
#9ED798
accent
#E6424F
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C840D4

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

Preview Lab → · Contrast checker → · Palette generator →

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