#C940AF#C940AF

#C940AF is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.4% C 0.209 H 336.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#C940AF
RGBrgb(201, 64, 175)
HSLhsl(311, 56%, 52%)
HSVhsv(311, 68%, 79%)
CMYKcmyk(0%, 68.2%, 12.9%, 21.2%)
CIE-LABlab(50.90, 65.38, -30.80)
CIE-LCHlch(50.90, 72.27, 334.78°)
OKLaboklab(60.43% 0.1917 -0.0838)
OKLCHoklch(60.43% 0.209 336.4)
XYZxyz(33.6591, 19.1824, 42.4790)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940AF #40C95A
analogous
#9F40C9 #C940AF #C9406B
triadic
#C940AF #AFC940 #40AFC9
tetradic
#C940AF #C99F40 #40C95A #406BC9
square
#C940AF #C99F40 #40C95A #406BC9
split-complementary
#C940AF #6BC940 #40C99F
monochromatic
#6F1F60 #9F2D89 #C940AF #D670C3 #E49FD7

Accessibility & contrast

On white

4.34
#C940AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#C940AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940AF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940AF#FFFFFF#000000##000000
##C940AF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#426CB2
Deuteranopia (green-blind)
#7081AC
Tritanopia (blue-blind)
#D34872
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c940af;
/* rgb */ color: rgb(201, 64, 175);
/* oklch */ color: oklch(60.4% 0.209 336.4);
Tailwind
colors: {
  custom: {
    50: '#dd80c7',
    500: '#c940af',
    950: '#000000',
  },
}
SCSS
$custom: #c940af;
$custom-light: #dd80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c940af",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 311.387,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.20922,
    "h": 336.4
  },
  "luminance": 0.19179
}

Semantic roles & 50–950 ramp

primary
#C940AF
secondary
#94D0A0
accent
#DF6549
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #C940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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