#C12D9B#C12D9B

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

Color values

HEX#C12D9B
RGBrgb(193, 45, 155)
HSLhsl(315, 62%, 47%)
HSVhsv(315, 77%, 76%)
CMYKcmyk(0%, 76.7%, 19.7%, 24.3%)
CIE-LABlab(46.42, 66.95, -26.02)
CIE-LCHlch(46.42, 71.83, 338.76°)
OKLaboklab(56.63% 0.2004 -0.0702)
OKLCHoklch(56.63% 0.212 340.7)
XYZxyz(28.8480, 15.5837, 32.4927)
Luminance0.1558 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12D9B #2DC153
analogous
#9D2DC1 #C12D9B #C12D51
triadic
#C12D9B #9BC12D #2D9BC1
tetradic
#C12D9B #C19D2D #2DC153 #2D51C1
square
#C12D9B #C19D2D #2DC153 #2D51C1
split-complementary
#C12D9B #51C12D #2DC19D
monochromatic
#5E164B #8F2173 #C12D9B #D754B5 #E386CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C12D9B#FFFFFF#000000##FFFFFF
##C12D9B1.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)
#3A5F9E
Deuteranopia (green-blind)
#6A7698
Tritanopia (blue-blind)
#CD3161
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c12d9b;
/* rgb */ color: rgb(193, 45, 155);
/* oklch */ color: oklch(56.6% 0.212 340.7);
Tailwind
colors: {
  custom: {
    50: '#d876b8',
    500: '#c12d9b',
    950: '#000000',
  },
}
SCSS
$custom: #c12d9b;
$custom-light: #d876b8;
$custom-dark: #000000;
JSON
{
  "hex": "#c12d9b",
  "rgb": {
    "r": 193,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 315.405,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56633,
    "c": 0.21232,
    "h": 340.7
  },
  "luminance": 0.15581
}

Semantic roles & 50–950 ramp

primary
#C12D9B
secondary
#7ECC92
accent
#E56C43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C12D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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