#C940C6#C940C6

#C940C6 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.226 H 328.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C940C6
RGBrgb(201, 64, 198)
HSLhsl(301, 56%, 52%)
HSVhsv(301, 68%, 79%)
CMYKcmyk(0%, 68.2%, 1.5%, 21.2%)
CIE-LABlab(52.02, 68.94, -42.39)
CIE-LCHlch(52.02, 80.93, 328.41°)
OKLaboklab(61.6% 0.1935 -0.1171)
OKLCHoklch(61.6% 0.226 328.8)
XYZxyz(36.1135, 20.1641, 55.4051)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940C6 #40C943
analogous
#8840C9 #C940C6 #C94082
triadic
#C940C6 #C6C940 #40C6C9
tetradic
#C940C6 #C98840 #40C943 #4082C9
square
#C940C6 #C98840 #40C943 #4082C9
split-complementary
#C940C6 #82C940 #40C988
monochromatic
#6F1F6D #9F2D9C #C940C6 #D670D4 #E49FE2

Accessibility & contrast

On white

4.17
#C940C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#C940C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940C6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940C6#FFFFFF#000000##000000
##C940C61.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E70CA
Deuteranopia (green-blind)
#6582C2
Tritanopia (blue-blind)
#D0527E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c940c6;
/* rgb */ color: rgb(201, 64, 198);
/* oklch */ color: oklch(61.6% 0.226 328.8);
Tailwind
colors: {
  custom: {
    50: '#dd80d8',
    500: '#c940c6',
    950: '#000000',
  },
}
SCSS
$custom: #c940c6;
$custom-light: #dd80d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c940c6",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 301.314,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.61601,
    "c": 0.22621,
    "h": 328.8
  },
  "luminance": 0.20162
}

Semantic roles & 50–950 ramp

primary
#C940C6
secondary
#94D096
accent
#DF4C49
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #C940C6

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

Preview Lab → · Contrast checker → · Palette generator →

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