#C940CC#C940CC

#C940CC is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.231 H 327.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#C940CC
RGBrgb(201, 64, 204)
HSLhsl(299, 58%, 53%)
HSVhsv(299, 69%, 80%)
CMYKcmyk(1.5%, 68.6%, 0%, 20%)
CIE-LABlab(52.34, 69.93, -45.34)
CIE-LCHlch(52.34, 83.34, 327.04°)
OKLaboklab(61.93% 0.1937 -0.1257)
OKLCHoklch(61.93% 0.231 327)
XYZxyz(36.8193, 20.4464, 59.1223)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940CC #43CC40
analogous
#8340CC #C940CC #CC4089
triadic
#C940CC #CCC940 #40CCC9
tetradic
#C940CC #CC8340 #43CC40 #4089CC
square
#C940CC #CC8340 #43CC40 #4089CC
split-complementary
#C940CC #89CC40 #40CC83
monochromatic
#711F73 #A12CA3 #C940CC #D770D9 #E4A1E6

Accessibility & contrast

On white

4.13
#C940CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#C940CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940CC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940CC#FFFFFF#000000##000000
##C940CC1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2672D0
Deuteranopia (green-blind)
#6283C8
Tritanopia (blue-blind)
#CF5582
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c940cc;
/* rgb */ color: rgb(201, 64, 204);
/* oklch */ color: oklch(61.9% 0.231 327.0);
Tailwind
colors: {
  custom: {
    50: '#dd81dc',
    500: '#c940cc',
    950: '#000000',
  },
}
SCSS
$custom: #c940cc;
$custom-light: #dd81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c940cc",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 298.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6193,
    "c": 0.23086,
    "h": 327
  },
  "luminance": 0.20444
}

Semantic roles & 50–950 ramp

primary
#C940CC
secondary
#97D295
accent
#E1474A
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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