#C12AA2#C12AA2

#C12AA2 is a mid, highly saturated pink. Relative luminance 0.156; OKLCH L 56.8% C 0.220 H 338.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#C12AA2
RGBrgb(193, 42, 162)
HSLhsl(312, 64%, 46%)
HSVhsv(312, 78%, 76%)
CMYKcmyk(0%, 78.2%, 16.1%, 24.3%)
CIE-LABlab(46.45, 68.74, -30.16)
CIE-LCHlch(46.45, 75.06, 336.31°)
OKLaboklab(56.76% 0.2037 -0.0819)
OKLCHoklch(56.76% 0.22 338.1)
XYZxyz(29.3426, 15.6049, 35.6421)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12AA2 #2AC149
analogous
#942AC1 #C12AA2 #C12A56
triadic
#C12AA2 #A2C12A #2AA2C1
tetradic
#C12AA2 #C1942A #2AC149 #2A56C1
square
#C12AA2 #C1942A #2AC149 #2A56C1
split-complementary
#C12AA2 #56C12A #2AC194
monochromatic
#5C144E #8F1F78 #C12AA2 #D94FBD #E482D0

Accessibility & contrast

On white

5.10
#C12AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#C12AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12AA2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12AA2#FFFFFF#000000##FFFFFF
##C12AA21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#66769F
Tritanopia (blue-blind)
#CC3364
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c12aa2;
/* rgb */ color: rgb(193, 42, 162);
/* oklch */ color: oklch(56.8% 0.220 338.1);
Tailwind
colors: {
  custom: {
    50: '#d875be',
    500: '#c12aa2',
    950: '#000000',
  },
}
SCSS
$custom: #c12aa2;
$custom-light: #d875be;
$custom-dark: #000000;
JSON
{
  "hex": "#c12aa2",
  "rgb": {
    "r": 193,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 312.318,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56759,
    "c": 0.21961,
    "h": 338.1
  },
  "luminance": 0.15602
}

Semantic roles & 50–950 ramp

primary
#C12AA2
secondary
#7ACD8B
accent
#E76341
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C12AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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