#C12D9E#C12D9E

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

Color values

HEX#C12D9E
RGBrgb(193, 45, 158)
HSLhsl(314, 62%, 47%)
HSVhsv(314, 77%, 76%)
CMYKcmyk(0%, 76.7%, 18.1%, 24.3%)
CIE-LABlab(46.56, 67.35, -27.61)
CIE-LCHlch(46.56, 72.79, 337.71°)
OKLaboklab(56.78% 0.2008 -0.0747)
OKLCHoklch(56.78% 0.214 339.6)
XYZxyz(29.1031, 15.6858, 33.8361)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12D9E #2DC150
analogous
#9A2DC1 #C12D9E #C12D54
triadic
#C12D9E #9EC12D #2D9EC1
tetradic
#C12D9E #C19A2D #2DC150 #2D54C1
square
#C12D9E #C19A2D #2DC150 #2D54C1
split-complementary
#C12D9E #54C12D #2DC19A
monochromatic
#5E164D #8F2175 #C12D9E #D754B8 #E386CD

Accessibility & contrast

On white

5.08
#C12D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C12D9E
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12D9E#FFFFFF#000000##FFFFFF
##C12D9E1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375FA1
Deuteranopia (green-blind)
#69779B
Tritanopia (blue-blind)
#CC3363
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c12d9e;
/* rgb */ color: rgb(193, 45, 158);
/* oklch */ color: oklch(56.8% 0.214 339.6);
Tailwind
colors: {
  custom: {
    50: '#d876bb',
    500: '#c12d9e',
    950: '#000000',
  },
}
SCSS
$custom: #c12d9e;
$custom-light: #d876bb;
$custom-dark: #000000;
JSON
{
  "hex": "#c12d9e",
  "rgb": {
    "r": 193,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 314.189,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56776,
    "c": 0.21421,
    "h": 339.6
  },
  "luminance": 0.15683
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C12D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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