#C12D9F#C12D9F

#C12D9F is a mid, highly saturated pink. Relative luminance 0.157; OKLCH L 56.8% C 0.215 H 339.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#C12D9F
RGBrgb(193, 45, 159)
HSLhsl(314, 62%, 47%)
HSVhsv(314, 77%, 76%)
CMYKcmyk(0%, 76.7%, 17.6%, 24.3%)
CIE-LABlab(46.61, 67.49, -28.13)
CIE-LCHlch(46.61, 73.12, 337.37°)
OKLaboklab(56.82% 0.2009 -0.0762)
OKLCHoklch(56.82% 0.215 339.2)
XYZxyz(29.1895, 15.7203, 34.2912)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12D9F #2DC14F
analogous
#992DC1 #C12D9F #C12D55
triadic
#C12D9F #9FC12D #2D9FC1
tetradic
#C12D9F #C1992D #2DC14F #2D55C1
square
#C12D9F #C1992D #2DC14F #2D55C1
split-complementary
#C12D9F #55C12D #2DC199
monochromatic
#5E164D #8F2176 #C12D9F #D754B9 #E386CD

Accessibility & contrast

On white

5.07
#C12D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#C12D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12D9F
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12D9F#FFFFFF#000000##FFFFFF
##C12D9F1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3760A2
Deuteranopia (green-blind)
#68779C
Tritanopia (blue-blind)
#CC3463
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c12d9f;
/* rgb */ color: rgb(193, 45, 159);
/* oklch */ color: oklch(56.8% 0.215 339.2);
Tailwind
colors: {
  custom: {
    50: '#d876bb',
    500: '#c12d9f',
    950: '#000000',
  },
}
SCSS
$custom: #c12d9f;
$custom-light: #d876bb;
$custom-dark: #000000;
JSON
{
  "hex": "#c12d9f",
  "rgb": {
    "r": 193,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 313.784,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56824,
    "c": 0.21485,
    "h": 339.2
  },
  "luminance": 0.15717
}

Semantic roles & 50–950 ramp

primary
#C12D9F
secondary
#7ECC90
accent
#E56843
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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