#C940B2#C940B2

#C940B2 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.6% C 0.211 H 335.3°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C940B2
RGBrgb(201, 64, 178)
HSLhsl(310, 56%, 52%)
HSVhsv(310, 68%, 79%)
CMYKcmyk(0%, 68.2%, 11.4%, 21.2%)
CIE-LABlab(51.04, 65.83, -32.33)
CIE-LCHlch(51.04, 73.34, 333.84°)
OKLaboklab(60.57% 0.1921 -0.0882)
OKLCHoklch(60.57% 0.211 335.3)
XYZxyz(33.9571, 19.3016, 44.0480)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940B2 #40C957
analogous
#9C40C9 #C940B2 #C9406E
triadic
#C940B2 #B2C940 #40B2C9
tetradic
#C940B2 #C99C40 #40C957 #406EC9
square
#C940B2 #C99C40 #40C957 #406EC9
split-complementary
#C940B2 #6EC940 #40C99C
monochromatic
#6F1F62 #9F2D8C #C940B2 #D670C5 #E49FD8

Accessibility & contrast

On white

4.32
#C940B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C940B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940B2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940B2#FFFFFF#000000##000000
##C940B21.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#6E81AF
Tritanopia (blue-blind)
#D34A74
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c940b2;
/* rgb */ color: rgb(201, 64, 178);
/* oklch */ color: oklch(60.6% 0.211 335.3);
Tailwind
colors: {
  custom: {
    50: '#dd80c9',
    500: '#c940b2',
    950: '#000000',
  },
}
SCSS
$custom: #c940b2;
$custom-light: #dd80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c940b2",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 310.073,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.6057,
    "c": 0.21134,
    "h": 335.3
  },
  "luminance": 0.19299
}

Semantic roles & 50–950 ramp

primary
#C940B2
secondary
#94D09E
accent
#DF6249
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #C940B2

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

Preview Lab → · Contrast checker → · Palette generator →

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