#C940CA#C940CA

#C940CA is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.8% C 0.229 H 327.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#C940CA
RGBrgb(201, 64, 202)
HSLhsl(300, 57%, 52%)
HSVhsv(300, 68%, 79%)
CMYKcmyk(0.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(52.23, 69.60, -44.36)
CIE-LCHlch(52.23, 82.53, 327.49°)
OKLaboklab(61.82% 0.1936 -0.1228)
OKLCHoklch(61.82% 0.229 327.6)
XYZxyz(36.5809, 20.3511, 57.8671)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940CA #41CA40
analogous
#8440CA #C940CA #CA4086
triadic
#C940CA #CAC940 #40CAC9
tetradic
#C940CA #CA8440 #41CA40 #4086CA
square
#C940CA #CA8440 #41CA40 #4086CA
split-complementary
#C940CA #86CA40 #40CA84
monochromatic
#701F70 #9F2CA0 #C940CA #D770D7 #E4A0E5

Accessibility & contrast

On white

4.14
#C940CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#C940CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940CA
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940CA#FFFFFF#000000##000000
##C940CA1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2971CE
Deuteranopia (green-blind)
#6383C6
Tritanopia (blue-blind)
#CF5481
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c940ca;
/* rgb */ color: rgb(201, 64, 202);
/* oklch */ color: oklch(61.8% 0.229 327.6);
Tailwind
colors: {
  custom: {
    50: '#dd81da',
    500: '#c940ca',
    950: '#000000',
  },
}
SCSS
$custom: #c940ca;
$custom-light: #dd81da;
$custom-dark: #000000;
JSON
{
  "hex": "#c940ca",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 299.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61819,
    "c": 0.2293,
    "h": 327.6
  },
  "luminance": 0.20349
}

Semantic roles & 50–950 ramp

primary
#C940CA
secondary
#95D195
accent
#E04849
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C940CA

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

Preview Lab → · Contrast checker → · Palette generator →

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