#C940D1#C940D1

#C940D1 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.2% C 0.235 H 325.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#C940D1
RGBrgb(201, 64, 209)
HSLhsl(297, 61%, 54%)
HSVhsv(297, 69%, 82%)
CMYKcmyk(3.8%, 69.4%, 0%, 18%)
CIE-LABlab(52.61, 70.76, -47.77)
CIE-LCHlch(52.61, 85.38, 325.97°)
OKLaboklab(62.21% 0.1937 -0.1327)
OKLCHoklch(62.21% 0.235 325.6)
XYZxyz(37.4286, 20.6902, 62.3314)
Luminance0.2069 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940D1 #48D140
analogous
#8040D1 #C940D1 #D14090
triadic
#C940D1 #D1C940 #40D1C9
tetradic
#C940D1 #D18040 #48D140 #4090D1
square
#C940D1 #D18040 #48D140 #4090D1
split-complementary
#C940D1 #90D140 #40D180
monochromatic
#741D79 #A429AB #C940D1 #D771DD #E5A3E9

Accessibility & contrast

On white

4.09
#C940D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#C940D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940D1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940D1#FFFFFF#000000##000000
##C940D11.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D73D5
Deuteranopia (green-blind)
#5F83CD
Tritanopia (blue-blind)
#CE5784
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c940d1;
/* rgb */ color: rgb(201, 64, 209);
/* oklch */ color: oklch(62.2% 0.235 325.6);
Tailwind
colors: {
  custom: {
    50: '#dd81e0',
    500: '#c940d1',
    950: '#000000',
  },
}
SCSS
$custom: #c940d1;
$custom-light: #dd81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c940d1",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 296.69,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.62211,
    "c": 0.23481,
    "h": 325.6
  },
  "luminance": 0.20688
}

Semantic roles & 50–950 ramp

primary
#C940D1
secondary
#9BD597
accent
#E4444C
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C940D1

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

Preview Lab → · Contrast checker → · Palette generator →

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