#C12AA7#C12AA7

#C12AA7 is a mid, highly saturated pink. Relative luminance 0.158; OKLCH L 57.0% C 0.223 H 336.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#C12AA7
RGBrgb(193, 42, 167)
HSLhsl(310, 64%, 46%)
HSVhsv(310, 78%, 76%)
CMYKcmyk(0%, 78.2%, 13.5%, 24.3%)
CIE-LABlab(46.69, 69.43, -32.76)
CIE-LCHlch(46.69, 76.77, 334.74°)
OKLaboklab(57.01% 0.2042 -0.0894)
OKLCHoklch(57.01% 0.223 336.4)
XYZxyz(29.7959, 15.7862, 38.0295)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12AA7 #2AC144
analogous
#8F2AC1 #C12AA7 #C12A5B
triadic
#C12AA7 #A7C12A #2AA7C1
tetradic
#C12AA7 #C18F2A #2AC144 #2A5BC1
square
#C12AA7 #C18F2A #2AC144 #2A5BC1
split-complementary
#C12AA7 #5BC12A #2AC18F
monochromatic
#5C1450 #8F1F7C #C12AA7 #D94FC1 #E482D3

Accessibility & contrast

On white

5.05
#C12AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#C12AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12AA7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12AA7#FFFFFF#000000##FFFFFF
##C12AA71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AA
Deuteranopia (green-blind)
#6477A4
Tritanopia (blue-blind)
#CB3667
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12aa7;
/* rgb */ color: rgb(193, 42, 167);
/* oklch */ color: oklch(57.0% 0.223 336.4);
Tailwind
colors: {
  custom: {
    50: '#d875c1',
    500: '#c12aa7',
    950: '#000000',
  },
}
SCSS
$custom: #c12aa7;
$custom-light: #d875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c12aa7",
  "rgb": {
    "r": 193,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 310.331,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.22288,
    "h": 336.4
  },
  "luminance": 0.15783
}

Semantic roles & 50–950 ramp

primary
#C12AA7
secondary
#7ACD88
accent
#E75D41
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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