#C12F9F#C12F9F

#C12F9F is a mid, highly saturated pink. Relative luminance 0.159; OKLCH L 57.0% C 0.213 H 339.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C12F9F
RGBrgb(193, 47, 159)
HSLhsl(314, 61%, 47%)
HSVhsv(314, 76%, 76%)
CMYKcmyk(0%, 75.6%, 17.6%, 24.3%)
CIE-LABlab(46.81, 66.90, -27.81)
CIE-LCHlch(46.81, 72.45, 337.43°)
OKLaboklab(56.97% 0.1991 -0.0753)
OKLCHoklch(56.97% 0.213 339.3)
XYZxyz(29.2676, 15.8766, 34.3173)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12F9F #2FC151
analogous
#9A2FC1 #C12F9F #C12F56
triadic
#C12F9F #9FC12F #2F9FC1
tetradic
#C12F9F #C19A2F #2FC151 #2F56C1
square
#C12F9F #C19A2F #2FC151 #2F56C1
split-complementary
#C12F9F #56C12F #2FC19A
monochromatic
#5F174E #902376 #C12F9F #D657B9 #E288CD

Accessibility & contrast

On white

5.03
#C12F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#C12F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12F9F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12F9F#FFFFFF#000000##FFFFFF
##C12F9F1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3860A2
Deuteranopia (green-blind)
#69779C
Tritanopia (blue-blind)
#CC3564
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12f9f;
/* rgb */ color: rgb(193, 47, 159);
/* oklch */ color: oklch(57.0% 0.213 339.3);
Tailwind
colors: {
  custom: {
    50: '#d877bb',
    500: '#c12f9f',
    950: '#000000',
  },
}
SCSS
$custom: #c12f9f;
$custom-light: #d877bb;
$custom-dark: #000000;
JSON
{
  "hex": "#c12f9f",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 313.973,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56973,
    "c": 0.21285,
    "h": 339.3
  },
  "luminance": 0.15874
}

Semantic roles & 50–950 ramp

primary
#C12F9F
secondary
#80CC92
accent
#E46944
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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