#C940B6#C940B6

#C940B6 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.214 H 334.0°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C940B6
RGBrgb(201, 64, 182)
HSLhsl(308, 56%, 52%)
HSVhsv(308, 68%, 79%)
CMYKcmyk(0%, 68.2%, 9.5%, 21.2%)
CIE-LABlab(51.23, 66.43, -34.37)
CIE-LCHlch(51.23, 74.80, 332.64°)
OKLaboklab(60.77% 0.1925 -0.094)
OKLCHoklch(60.77% 0.214 334)
XYZxyz(34.3645, 19.4645, 46.1940)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940B6 #40C953
analogous
#9740C9 #C940B6 #C94072
triadic
#C940B6 #B6C940 #40B6C9
tetradic
#C940B6 #C99740 #40C953 #4072C9
square
#C940B6 #C99740 #40C953 #4072C9
split-complementary
#C940B6 #72C940 #40C997
monochromatic
#6F1F64 #9F2D8F #C940B6 #D670C8 #E49FDA

Accessibility & contrast

On white

4.29
#C940B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#C940B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940B6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940B6#FFFFFF#000000##000000
##C940B61.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6DB9
Deuteranopia (green-blind)
#6D81B3
Tritanopia (blue-blind)
#D24B76
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c940b6;
/* rgb */ color: rgb(201, 64, 182);
/* oklch */ color: oklch(60.8% 0.214 334.0);
Tailwind
colors: {
  custom: {
    50: '#dd80cc',
    500: '#c940b6',
    950: '#000000',
  },
}
SCSS
$custom: #c940b6;
$custom-light: #dd80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#c940b6",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 308.321,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60768,
    "c": 0.21422,
    "h": 334
  },
  "luminance": 0.19462
}

Semantic roles & 50–950 ramp

primary
#C940B6
secondary
#94D09D
accent
#DF5D49
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #C940B6

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

Preview Lab → · Contrast checker → · Palette generator →

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