#C840C8#C840C8

#C840C8 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.6% C 0.227 H 327.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C840C8
RGBrgb(200, 64, 200)
HSLhsl(300, 55%, 52%)
HSVhsv(300, 68%, 78%)
CMYKcmyk(0%, 68%, 0%, 21.6%)
CIE-LABlab(51.97, 69.04, -43.63)
CIE-LCHlch(51.97, 81.68, 327.71°)
OKLaboklab(61.57% 0.1925 -0.1207)
OKLCHoklch(61.57% 0.227 327.9)
XYZxyz(36.0777, 20.1188, 56.6155)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840C8 #40C840
analogous
#8440C8 #C840C8 #C84084
triadic
#C840C8 #C8C840 #40C8C8
tetradic
#C840C8 #C88440 #40C840 #4084C8
square
#C840C8 #C88440 #40C840 #4084C8
split-complementary
#C840C8 #84C840 #40C884
monochromatic
#6E206E #9D2D9D #C840C8 #D670D6 #E39FE3

Accessibility & contrast

On white

4.18
#C840C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#C840C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840C8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840C8#FFFFFF#000000##000000
##C840C81.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A71CC
Deuteranopia (green-blind)
#6382C4
Tritanopia (blue-blind)
#CE547F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c840c8;
/* rgb */ color: rgb(200, 64, 200);
/* oklch */ color: oklch(61.6% 0.227 327.9);
Tailwind
colors: {
  custom: {
    50: '#dc80d9',
    500: '#c840c8',
    950: '#000000',
  },
}
SCSS
$custom: #c840c8;
$custom-light: #dc80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c840c8",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 300,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61567,
    "c": 0.22725,
    "h": 327.9
  },
  "luminance": 0.20116
}

Semantic roles & 50–950 ramp

primary
#C840C8
secondary
#94D094
accent
#DF4949
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B15
muted
#847C83

Preview Lab

Preview with #C840C8

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

Preview Lab → · Contrast checker → · Palette generator →

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