#C12CAB#C12CAB

#C12CAB is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.224 H 335.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C12CAB
RGBrgb(193, 44, 171)
HSLhsl(309, 63%, 46%)
HSVhsv(309, 77%, 76%)
CMYKcmyk(0%, 77.2%, 11.4%, 24.3%)
CIE-LABlab(47.08, 69.45, -34.52)
CIE-LCHlch(47.08, 77.55, 333.57°)
OKLaboklab(57.35% 0.2028 -0.0944)
OKLCHoklch(57.35% 0.224 335)
XYZxyz(30.2441, 16.0818, 40.0314)
Luminance0.1608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12CAB #2CC142
analogous
#8D2CC1 #C12CAB #C12C61
triadic
#C12CAB #ABC12C #2CABC1
tetradic
#C12CAB #C18D2C #2CC142 #2C61C1
square
#C12CAB #C18D2C #2CC142 #2C61C1
split-complementary
#C12CAB #61C12C #2CC18D
monochromatic
#5D1553 #8F217F #C12CAB #D853C4 #E384D5

Accessibility & contrast

On white

4.98
#C12CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#C12CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12CAB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12CAB#FFFFFF#000000##FFFFFF
##C12CAB1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B62AE
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#CB3A6A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c12cab;
/* rgb */ color: rgb(193, 44, 171);
/* oklch */ color: oklch(57.4% 0.224 335.0);
Tailwind
colors: {
  custom: {
    50: '#d876c4',
    500: '#c12cab',
    950: '#000000',
  },
}
SCSS
$custom: #c12cab;
$custom-light: #d876c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c12cab",
  "rgb": {
    "r": 193,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 308.859,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57353,
    "c": 0.22372,
    "h": 335
  },
  "luminance": 0.16079
}

Semantic roles & 50–950 ramp

primary
#C12CAB
secondary
#7DCC88
accent
#E65A42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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