#C940C7#C940C7

#C940C7 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.7% C 0.227 H 328.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#C940C7
RGBrgb(201, 64, 199)
HSLhsl(301, 56%, 52%)
HSVhsv(301, 68%, 79%)
CMYKcmyk(0%, 68.2%, 1%, 21.2%)
CIE-LABlab(52.07, 69.11, -42.89)
CIE-LCHlch(52.07, 81.33, 328.18°)
OKLaboklab(61.66% 0.1936 -0.1185)
OKLCHoklch(61.66% 0.227 328.5)
XYZxyz(36.2292, 20.2104, 56.0146)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940C7 #40C942
analogous
#8740C9 #C940C7 #C94083
triadic
#C940C7 #C7C940 #40C7C9
tetradic
#C940C7 #C98740 #40C942 #4083C9
square
#C940C7 #C98740 #40C942 #4083C9
split-complementary
#C940C7 #83C940 #40C987
monochromatic
#6F1F6E #9F2D9D #C940C7 #D670D5 #E49FE3

Accessibility & contrast

On white

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

On black

5.04
#C940C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940C7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940C7#FFFFFF#000000##000000
##C940C71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D71CB
Deuteranopia (green-blind)
#6483C3
Tritanopia (blue-blind)
#CF537F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c940c7;
/* rgb */ color: rgb(201, 64, 199);
/* oklch */ color: oklch(61.7% 0.227 328.5);
Tailwind
colors: {
  custom: {
    50: '#dd80d8',
    500: '#c940c7',
    950: '#000000',
  },
}
SCSS
$custom: #c940c7;
$custom-light: #dd80d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c940c7",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 300.876,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.61655,
    "c": 0.22698,
    "h": 328.5
  },
  "luminance": 0.20208
}

Semantic roles & 50–950 ramp

primary
#C940C7
secondary
#94D095
accent
#DF4B49
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #C940C7

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

Preview Lab → · Contrast checker → · Palette generator →

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