#C840C3#C840C3

#C840C3 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.3% C 0.223 H 329.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C840C3
RGBrgb(200, 64, 195)
HSLhsl(302, 55%, 52%)
HSVhsv(302, 68%, 78%)
CMYKcmyk(0%, 68%, 2.5%, 21.6%)
CIE-LABlab(51.71, 68.23, -41.16)
CIE-LCHlch(51.71, 79.69, 328.90°)
OKLaboklab(61.3% 0.1924 -0.1136)
OKLCHoklch(61.3% 0.223 329.4)
XYZxyz(35.5029, 19.8889, 53.5882)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840C3 #40C845
analogous
#8940C8 #C840C3 #C8407F
triadic
#C840C3 #C3C840 #40C3C8
tetradic
#C840C3 #C88940 #40C845 #407FC8
square
#C840C3 #C88940 #40C845 #407FC8
split-complementary
#C840C3 #7FC840 #40C889
monochromatic
#6E206B #9D2D99 #C840C3 #D670D2 #E39FE1

Accessibility & contrast

On white

4.22
#C840C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#C840C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840C3
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840C3#FFFFFF#000000##000000
##C840C31.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3070C7
Deuteranopia (green-blind)
#6682C0
Tritanopia (blue-blind)
#CF517D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c840c3;
/* rgb */ color: rgb(200, 64, 195);
/* oklch */ color: oklch(61.3% 0.223 329.4);
Tailwind
colors: {
  custom: {
    50: '#dc80d5',
    500: '#c840c3',
    950: '#000000',
  },
}
SCSS
$custom: #c840c3;
$custom-light: #dc80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c840c3",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 302.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61296,
    "c": 0.22339,
    "h": 329.4
  },
  "luminance": 0.19886
}

Semantic roles & 50–950 ramp

primary
#C840C3
secondary
#94D096
accent
#DF4F49
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C840C3

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

Preview Lab → · Contrast checker → · Palette generator →

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