#C940D5#C940D5

#C940D5 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.4% C 0.238 H 324.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#C940D5
RGBrgb(201, 64, 213)
HSLhsl(295, 64%, 54%)
HSVhsv(295, 70%, 84%)
CMYKcmyk(5.6%, 70%, 0%, 16.5%)
CIE-LABlab(52.83, 71.44, -49.71)
CIE-LCHlch(52.83, 87.03, 325.17°)
OKLaboklab(62.44% 0.1936 -0.1384)
OKLCHoklch(62.44% 0.238 324.4)
XYZxyz(37.9300, 20.8907, 64.9724)
Luminance0.2089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940D5 #4CD540
analogous
#7F40D5 #C940D5 #D54097
triadic
#C940D5 #D5C940 #40D5C9
tetradic
#C940D5 #D57F40 #4CD540 #4097D5
square
#C940D5 #D57F40 #4CD540 #4097D5
split-complementary
#C940D5 #97D540 #40D57F
monochromatic
#771C7F #A627B1 #C940D5 #D772E0 #E5A4EB

Accessibility & contrast

On white

4.06
#C940D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#C940D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940D5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940D5#FFFFFF#000000##000000
##C940D51.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1374D9
Deuteranopia (green-blind)
#5C84D1
Tritanopia (blue-blind)
#CD5987
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c940d5;
/* rgb */ color: rgb(201, 64, 213);
/* oklch */ color: oklch(62.4% 0.238 324.4);
Tailwind
colors: {
  custom: {
    50: '#dd81e2',
    500: '#c940d5',
    950: '#000000',
  },
}
SCSS
$custom: #c940d5;
$custom-light: #dd81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#c940d5",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 295.168,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62441,
    "c": 0.23798,
    "h": 324.4
  },
  "luminance": 0.20888
}

Semantic roles & 50–950 ramp

primary
#C940D5
secondary
#9ED899
accent
#E7414E
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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