#C12CB7#C12CB7

#C12CB7 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.232 H 331.1°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#C12CB7
RGBrgb(193, 44, 183)
HSLhsl(304, 63%, 46%)
HSVhsv(304, 77%, 76%)
CMYKcmyk(0%, 77.2%, 5.2%, 24.3%)
CIE-LABlab(47.70, 71.22, -40.60)
CIE-LCHlch(47.70, 81.98, 330.31°)
OKLaboklab(58% 0.2032 -0.112)
OKLCHoklch(58% 0.232 331.1)
XYZxyz(31.4402, 16.5603, 46.3311)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12CB7 #2CC136
analogous
#812CC1 #C12CB7 #C12C6D
triadic
#C12CB7 #B7C12C #2CB7C1
tetradic
#C12CB7 #C1812C #2CC136 #2C6DC1
square
#C12CB7 #C1812C #2CC136 #2C6DC1
split-complementary
#C12CB7 #6DC12C #2CC181
monochromatic
#5D1558 #8F2188 #C12CB7 #D853CF #E384DD

Accessibility & contrast

On white

4.87
#C12CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#C12CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12CB7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12CB7#FFFFFF#000000##FFFFFF
##C12CB71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B64BB
Deuteranopia (green-blind)
#5D78B3
Tritanopia (blue-blind)
#C94071
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c12cb7;
/* rgb */ color: rgb(193, 44, 183);
/* oklch */ color: oklch(58.0% 0.232 331.1);
Tailwind
colors: {
  custom: {
    50: '#d877cd',
    500: '#c12cb7',
    950: '#000000',
  },
}
SCSS
$custom: #c12cb7;
$custom-light: #d877cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c12cb7",
  "rgb": {
    "r": 193,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 304.027,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57997,
    "c": 0.23205,
    "h": 331.1
  },
  "luminance": 0.16558
}

Semantic roles & 50–950 ramp

primary
#C12CB7
secondary
#7DCC82
accent
#E64D42
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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