#C940B1#C940B1

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

Color values

HEX#C940B1
RGBrgb(201, 64, 177)
HSLhsl(311, 56%, 52%)
HSVhsv(311, 68%, 79%)
CMYKcmyk(0%, 68.2%, 11.9%, 21.2%)
CIE-LABlab(50.99, 65.68, -31.82)
CIE-LCHlch(50.99, 72.98, 334.15°)
OKLaboklab(60.52% 0.192 -0.0867)
OKLCHoklch(60.52% 0.211 335.7)
XYZxyz(33.8570, 19.2615, 43.5211)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940B1 #40C958
analogous
#9D40C9 #C940B1 #C9406D
triadic
#C940B1 #B1C940 #40B1C9
tetradic
#C940B1 #C99D40 #40C958 #406DC9
square
#C940B1 #C99D40 #40C958 #406DC9
split-complementary
#C940B1 #6DC940 #40C99D
monochromatic
#6F1F61 #9F2D8B #C940B1 #D670C4 #E49FD8

Accessibility & contrast

On white

4.33
#C940B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#C940B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940B1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940B1#FFFFFF#000000##000000
##C940B11.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#416CB4
Deuteranopia (green-blind)
#6F81AE
Tritanopia (blue-blind)
#D34973
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c940b1;
/* rgb */ color: rgb(201, 64, 177);
/* oklch */ color: oklch(60.5% 0.211 335.7);
Tailwind
colors: {
  custom: {
    50: '#dd80c8',
    500: '#c940b1',
    950: '#000000',
  },
}
SCSS
$custom: #c940b1;
$custom-light: #dd80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#c940b1",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 310.511,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60521,
    "c": 0.21063,
    "h": 335.7
  },
  "luminance": 0.19259
}

Semantic roles & 50–950 ramp

primary
#C940B1
secondary
#94D09F
accent
#DF6349
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #C940B1

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

Preview Lab → · Contrast checker → · Palette generator →

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