#C940A2#C940A2

#C940A2 is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 59.8% C 0.200 H 341.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#C940A2
RGBrgb(201, 64, 162)
HSLhsl(317, 56%, 52%)
HSVhsv(317, 68%, 79%)
CMYKcmyk(0%, 68.2%, 19.4%, 21.2%)
CIE-LABlab(50.33, 63.53, -24.03)
CIE-LCHlch(50.33, 67.92, 339.28°)
OKLaboklab(59.82% 0.1898 -0.0646)
OKLCHoklch(59.82% 0.2 341.2)
XYZxyz(32.4433, 18.6960, 36.0755)
Luminance0.1869 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940A2 #40C967
analogous
#AB40C9 #C940A2 #C9405E
triadic
#C940A2 #A2C940 #40A2C9
tetradic
#C940A2 #C9AB40 #40C967 #405EC9
square
#C940A2 #C9AB40 #40C967 #405EC9
split-complementary
#C940A2 #5EC940 #40C9AB
monochromatic
#6F1F58 #9F2D7E #C940A2 #D670B9 #E49FD0

Accessibility & contrast

On white

4.43
#C940A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#C940A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940A2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940A2#FFFFFF#000000##000000
##C940A21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6AA5
Deuteranopia (green-blind)
#75809F
Tritanopia (blue-blind)
#D5426B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c940a2;
/* rgb */ color: rgb(201, 64, 162);
/* oklch */ color: oklch(59.8% 0.200 341.2);
Tailwind
colors: {
  custom: {
    50: '#dd7fbd',
    500: '#c940a2',
    950: '#000000',
  },
}
SCSS
$custom: #c940a2;
$custom-light: #dd7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c940a2",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 317.08,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59824,
    "c": 0.20045,
    "h": 341.2
  },
  "luminance": 0.18693
}

Semantic roles & 50–950 ramp

primary
#C940A2
secondary
#94D0A5
accent
#DF7349
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #C940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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