#C940A7#C940A7

#C940A7 is a mid, highly saturated pink. Relative luminance 0.189; OKLCH L 60.0% C 0.204 H 339.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C940A7
RGBrgb(201, 64, 167)
HSLhsl(315, 56%, 52%)
HSVhsv(315, 68%, 79%)
CMYKcmyk(0%, 68.2%, 16.9%, 21.2%)
CIE-LABlab(50.54, 64.23, -26.65)
CIE-LCHlch(50.54, 69.54, 337.46°)
OKLaboklab(60.05% 0.1906 -0.072)
OKLCHoklch(60.05% 0.204 339.3)
XYZxyz(32.8966, 18.8774, 38.4629)
Luminance0.1887 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940A7 #40C962
analogous
#A740C9 #C940A7 #C94062
triadic
#C940A7 #A7C940 #40A7C9
tetradic
#C940A7 #C9A740 #40C962 #4062C9
square
#C940A7 #C9A740 #40C962 #4062C9
split-complementary
#C940A7 #62C940 #40C9A7
monochromatic
#6F1F5B #9F2D83 #C940A7 #D670BD #E49FD3

Accessibility & contrast

On white

4.40
#C940A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#C940A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940A7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940A7#FFFFFF#000000##000000
##C940A71.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#476AAA
Deuteranopia (green-blind)
#7380A4
Tritanopia (blue-blind)
#D4456E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c940a7;
/* rgb */ color: rgb(201, 64, 167);
/* oklch */ color: oklch(60.0% 0.204 339.3);
Tailwind
colors: {
  custom: {
    50: '#dd7fc1',
    500: '#c940a7',
    950: '#000000',
  },
}
SCSS
$custom: #c940a7;
$custom-light: #dd7fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#c940a7",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 314.891,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60049,
    "c": 0.20374,
    "h": 339.3
  },
  "luminance": 0.18874
}

Semantic roles & 50–950 ramp

primary
#C940A7
secondary
#94D0A3
accent
#DF6E49
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C940A7

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

Preview Lab → · Contrast checker → · Palette generator →

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