#C940D2#C940D2

#C940D2 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.3% C 0.236 H 325.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#C940D2
RGBrgb(201, 64, 210)
HSLhsl(296, 62%, 54%)
HSVhsv(296, 70%, 82%)
CMYKcmyk(4.3%, 69.5%, 0%, 17.6%)
CIE-LABlab(52.66, 70.93, -48.26)
CIE-LCHlch(52.66, 85.79, 325.77°)
OKLaboklab(62.27% 0.1937 -0.1342)
OKLCHoklch(62.27% 0.236 325.3)
XYZxyz(37.5528, 20.7398, 62.9855)
Luminance0.2074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940D2 #49D240
analogous
#8040D2 #C940D2 #D24092
triadic
#C940D2 #D2C940 #40D2C9
tetradic
#C940D2 #D28040 #49D240 #4092D2
square
#C940D2 #D28040 #49D240 #4092D2
split-complementary
#C940D2 #92D240 #40D280
monochromatic
#751D7B #A429AC #C940D2 #D772DE #E5A3E9

Accessibility & contrast

On white

4.08
#C940D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#C940D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940D2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940D2#FFFFFF#000000##000000
##C940D21.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B73D6
Deuteranopia (green-blind)
#5E83CE
Tritanopia (blue-blind)
#CE5885
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c940d2;
/* rgb */ color: rgb(201, 64, 210);
/* oklch */ color: oklch(62.3% 0.236 325.3);
Tailwind
colors: {
  custom: {
    50: '#dd81e0',
    500: '#c940d2',
    950: '#000000',
  },
}
SCSS
$custom: #c940d2;
$custom-light: #dd81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c940d2",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 296.301,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62268,
    "c": 0.2356,
    "h": 325.3
  },
  "luminance": 0.20737
}

Semantic roles & 50–950 ramp

primary
#C940D2
secondary
#9CD698
accent
#E5434D
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C940D2

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

Preview Lab → · Contrast checker → · Palette generator →

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