#C940CB#C940CB

#C940CB is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.230 H 327.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#C940CB
RGBrgb(201, 64, 203)
HSLhsl(299, 57%, 52%)
HSVhsv(299, 68%, 80%)
CMYKcmyk(1%, 68.5%, 0%, 20.4%)
CIE-LABlab(52.28, 69.76, -44.85)
CIE-LCHlch(52.28, 82.93, 327.26°)
OKLaboklab(61.87% 0.1937 -0.1242)
OKLCHoklch(61.87% 0.23 327.3)
XYZxyz(36.6997, 20.3986, 58.4927)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940CB #42CB40
analogous
#8440CB #C940CB #CB4087
triadic
#C940CB #CBC940 #40CBC9
tetradic
#C940CB #CB8440 #42CB40 #4087CB
square
#C940CB #CB8440 #42CB40 #4087CB
split-complementary
#C940CB #87CB40 #40CB84
monochromatic
#701F72 #A02CA2 #C940CB #D770D8 #E4A0E5

Accessibility & contrast

On white

4.13
#C940CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#C940CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940CB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940CB#FFFFFF#000000##000000
##C940CB1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2771CF
Deuteranopia (green-blind)
#6283C7
Tritanopia (blue-blind)
#CF5581
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c940cb;
/* rgb */ color: rgb(201, 64, 203);
/* oklch */ color: oklch(61.9% 0.230 327.3);
Tailwind
colors: {
  custom: {
    50: '#dd81db',
    500: '#c940cb',
    950: '#000000',
  },
}
SCSS
$custom: #c940cb;
$custom-light: #dd81db;
$custom-dark: #000000;
JSON
{
  "hex": "#c940cb",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 299.137,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.23008,
    "h": 327.3
  },
  "luminance": 0.20396
}

Semantic roles & 50–950 ramp

primary
#C940CB
secondary
#96D295
accent
#E0474A
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #C940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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