#C840CB#C840CB

#C840CB is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.230 H 327.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#C840CB
RGBrgb(200, 64, 203)
HSLhsl(299, 57%, 52%)
HSVhsv(299, 68%, 80%)
CMYKcmyk(1.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(52.13, 69.54, -45.11)
CIE-LCHlch(52.13, 82.89, 327.03°)
OKLaboklab(61.73% 0.1926 -0.125)
OKLCHoklch(61.73% 0.23 327)
XYZxyz(36.4317, 20.2604, 58.4801)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840CB #43CB40
analogous
#8340CB #C840CB #CB4089
triadic
#C840CB #CBC840 #40CBC8
tetradic
#C840CB #CB8340 #43CB40 #4089CB
square
#C840CB #CB8340 #43CB40 #4089CB
split-complementary
#C840CB #89CB40 #40CB83
monochromatic
#701F72 #9F2CA2 #C840CB #D670D8 #E4A0E5

Accessibility & contrast

On white

4.16
#C840CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#C840CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840CB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840CB#FFFFFF#000000##000000
##C840CB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2671CF
Deuteranopia (green-blind)
#6182C7
Tritanopia (blue-blind)
#CE5581
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c840cb;
/* rgb */ color: rgb(200, 64, 203);
/* oklch */ color: oklch(61.7% 0.230 327.0);
Tailwind
colors: {
  custom: {
    50: '#dc80db',
    500: '#c840cb',
    950: '#000000',
  },
}
SCSS
$custom: #c840cb;
$custom-light: #dc80db;
$custom-dark: #000000;
JSON
{
  "hex": "#c840cb",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 298.705,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61733,
    "c": 0.2296,
    "h": 327
  },
  "luminance": 0.20258
}

Semantic roles & 50–950 ramp

primary
#C840CB
secondary
#96D295
accent
#E0474B
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C840CB

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

Preview Lab → · Contrast checker → · Palette generator →

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