#C12E9D#C12E9D

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

Color values

HEX#C12E9D
RGBrgb(193, 46, 157)
HSLhsl(315, 62%, 47%)
HSVhsv(315, 76%, 76%)
CMYKcmyk(0%, 76.2%, 18.7%, 24.3%)
CIE-LABlab(46.62, 66.92, -26.92)
CIE-LCHlch(46.62, 72.14, 338.09°)
OKLaboklab(56.8% 0.1998 -0.0727)
OKLCHoklch(56.8% 0.213 340)
XYZxyz(29.0560, 15.7287, 33.3975)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12E9D #2EC152
analogous
#9C2EC1 #C12E9D #C12E54
triadic
#C12E9D #9DC12E #2E9DC1
tetradic
#C12E9D #C19C2E #2EC152 #2E54C1
square
#C12E9D #C19C2E #2EC152 #2E54C1
split-complementary
#C12E9D #54C12E #2EC19C
monochromatic
#5E164D #902275 #C12E9D #D756B7 #E287CC

Accessibility & contrast

On white

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

On black

4.15
#C12E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C12E9D#FFFFFF#000000##FFFFFF
##C12E9D1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3960A0
Deuteranopia (green-blind)
#69779A
Tritanopia (blue-blind)
#CD3363
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #c12e9d;
/* rgb */ color: rgb(193, 46, 157);
/* oklch */ color: oklch(56.8% 0.213 340.0);
Tailwind
colors: {
  custom: {
    50: '#d876ba',
    500: '#c12e9d',
    950: '#000000',
  },
}
SCSS
$custom: #c12e9d;
$custom-light: #d876ba;
$custom-dark: #000000;
JSON
{
  "hex": "#c12e9d",
  "rgb": {
    "r": 193,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 314.694,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56802,
    "c": 0.21258,
    "h": 340
  },
  "luminance": 0.15726
}

Semantic roles & 50–950 ramp

primary
#C12E9D
secondary
#7FCC92
accent
#E56B43
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #C12E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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