#C940C5#C940C5

#C940C5 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.225 H 329.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C940C5
RGBrgb(201, 64, 197)
HSLhsl(302, 56%, 52%)
HSVhsv(302, 68%, 79%)
CMYKcmyk(0%, 68.2%, 2%, 21.2%)
CIE-LABlab(51.97, 68.78, -41.90)
CIE-LCHlch(51.97, 80.54, 328.65°)
OKLaboklab(61.55% 0.1935 -0.1157)
OKLCHoklch(61.55% 0.225 329.1)
XYZxyz(35.9985, 20.1181, 54.7997)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940C5 #40C944
analogous
#8940C9 #C940C5 #C94081
triadic
#C940C5 #C5C940 #40C5C9
tetradic
#C940C5 #C98940 #40C944 #4081C9
square
#C940C5 #C98940 #40C944 #4081C9
split-complementary
#C940C5 #81C940 #40C989
monochromatic
#6F1F6D #9F2D9C #C940C5 #D670D3 #E49FE2

Accessibility & contrast

On white

4.18
#C940C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#C940C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940C5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940C5#FFFFFF#000000##000000
##C940C51.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F70C9
Deuteranopia (green-blind)
#6582C1
Tritanopia (blue-blind)
#D0527E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c940c5;
/* rgb */ color: rgb(201, 64, 197);
/* oklch */ color: oklch(61.5% 0.225 329.1);
Tailwind
colors: {
  custom: {
    50: '#dd80d7',
    500: '#c940c5',
    950: '#000000',
  },
}
SCSS
$custom: #c940c5;
$custom-light: #dd80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#c940c5",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 301.752,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.61546,
    "c": 0.22543,
    "h": 329.1
  },
  "luminance": 0.20116
}

Semantic roles & 50–950 ramp

primary
#C940C5
secondary
#94D096
accent
#DF4D49
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #C940C5

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

Preview Lab → · Contrast checker → · Palette generator →

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