#C12AA6#C12AA6

#C12AA6 is a mid, highly saturated pink. Relative luminance 0.157; OKLCH L 57.0% C 0.222 H 336.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#C12AA6
RGBrgb(193, 42, 166)
HSLhsl(311, 64%, 46%)
HSVhsv(311, 78%, 76%)
CMYKcmyk(0%, 78.2%, 14%, 24.3%)
CIE-LABlab(46.64, 69.29, -32.24)
CIE-LCHlch(46.64, 76.42, 335.05°)
OKLaboklab(56.96% 0.2041 -0.0879)
OKLCHoklch(56.96% 0.222 336.7)
XYZxyz(29.7038, 15.7494, 37.5446)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12AA6 #2AC145
analogous
#902AC1 #C12AA6 #C12A5B
triadic
#C12AA6 #A6C12A #2AA6C1
tetradic
#C12AA6 #C1902A #2AC145 #2A5BC1
square
#C12AA6 #C1902A #2AC145 #2A5BC1
split-complementary
#C12AA6 #5BC12A #2AC190
monochromatic
#5C1450 #8F1F7B #C12AA6 #D94FC0 #E482D2

Accessibility & contrast

On white

5.06
#C12AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#C12AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12AA6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12AA6#FFFFFF#000000##FFFFFF
##C12AA61.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A9
Deuteranopia (green-blind)
#6577A3
Tritanopia (blue-blind)
#CB3567
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12aa6;
/* rgb */ color: rgb(193, 42, 166);
/* oklch */ color: oklch(57.0% 0.222 336.7);
Tailwind
colors: {
  custom: {
    50: '#d875c1',
    500: '#c12aa6',
    950: '#000000',
  },
}
SCSS
$custom: #c12aa6;
$custom-light: #d875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c12aa6",
  "rgb": {
    "r": 193,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 310.728,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56959,
    "c": 0.22222,
    "h": 336.7
  },
  "luminance": 0.15747
}

Semantic roles & 50–950 ramp

primary
#C12AA6
secondary
#7ACD89
accent
#E75E41
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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