#C940BF#C940BF

#C940BF is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.2% C 0.221 H 331.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C940BF
RGBrgb(201, 64, 191)
HSLhsl(304, 56%, 52%)
HSVhsv(304, 68%, 79%)
CMYKcmyk(0%, 68.2%, 5%, 21.2%)
CIE-LABlab(51.67, 67.83, -38.91)
CIE-LCHlch(51.67, 78.19, 330.16°)
OKLaboklab(61.23% 0.1932 -0.107)
OKLCHoklch(61.23% 0.221 331)
XYZxyz(35.3247, 19.8486, 51.2508)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C940BF #40C94A
analogous
#8F40C9 #C940BF #C9407A
triadic
#C940BF #BFC940 #40BFC9
tetradic
#C940BF #C98F40 #40C94A #407AC9
square
#C940BF #C98F40 #40C94A #407AC9
split-complementary
#C940BF #7AC940 #40C98F
monochromatic
#6F1F69 #9F2D97 #C940BF #D670CF #E49FDF

Accessibility & contrast

On white

4.23
#C940BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C940BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C940BF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C940BF#FFFFFF#000000##000000
##C940BF1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#356FC3
Deuteranopia (green-blind)
#6982BC
Tritanopia (blue-blind)
#D14F7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c940bf;
/* rgb */ color: rgb(201, 64, 191);
/* oklch */ color: oklch(61.2% 0.221 331.0);
Tailwind
colors: {
  custom: {
    50: '#dd80d3',
    500: '#c940bf',
    950: '#000000',
  },
}
SCSS
$custom: #c940bf;
$custom-light: #dd80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c940bf",
  "rgb": {
    "r": 201,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 304.38,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.61228,
    "c": 0.22087,
    "h": 331
  },
  "luminance": 0.19846
}

Semantic roles & 50–950 ramp

primary
#C940BF
secondary
#94D099
accent
#DF5449
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #C940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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