#C940BA#C940BA

#C940BA is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.217 H 332.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#C940BA
RGBrgb(201, 64, 186)
HSLhsl(307, 56%, 52%)
HSVhsv(307, 68%, 79%)
CMYKcmyk(0%, 68.2%, 7.5%, 21.2%)
CIE-LABlab(51.42, 67.04, -36.40)
CIE-LCHlch(51.42, 76.29, 331.50°)
OKLaboklab(60.97% 0.1928 -0.0998)
OKLCHoklch(60.97% 0.217 332.6)
XYZxyz(34.7838, 19.6323, 48.4023)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940BA #40C94F
analogous
#9340C9 #C940BA #C94076
triadic
#C940BA #BAC940 #40BAC9
tetradic
#C940BA #C99340 #40C94F #4076C9
square
#C940BA #C99340 #40C94F #4076C9
split-complementary
#C940BA #76C940 #40C993
monochromatic
#6F1F66 #9F2D92 #C940BA #D670CB #E49FDC

Accessibility & contrast

On white

4.26
#C940BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#C940BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940BA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940BA#FFFFFF#000000##000000
##C940BA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBD
Deuteranopia (green-blind)
#6B81B7
Tritanopia (blue-blind)
#D24D78
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c940ba;
/* rgb */ color: rgb(201, 64, 186);
/* oklch */ color: oklch(61.0% 0.217 332.6);
Tailwind
colors: {
  custom: {
    50: '#dd80cf',
    500: '#c940ba',
    950: '#000000',
  },
}
SCSS
$custom: #c940ba;
$custom-light: #dd80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c940ba",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 306.569,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60969,
    "c": 0.21714,
    "h": 332.6
  },
  "luminance": 0.19629
}

Semantic roles & 50–950 ramp

primary
#C940BA
secondary
#94D09B
accent
#DF5949
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #C940BA

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

Preview Lab → · Contrast checker → · Palette generator →

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