#C12771#C12771

#C12771 is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.5% C 0.197 H 357.3°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#C12771
RGBrgb(193, 39, 113)
HSLhsl(331, 66%, 45%)
HSVhsv(331, 80%, 76%)
CMYKcmyk(0%, 79.8%, 41.5%, 24.3%)
CIE-LABlab(44.21, 63.80, -3.81)
CIE-LCHlch(44.21, 63.91, 356.58°)
OKLaboklab(54.5% 0.1963 -0.0092)
OKLCHoklch(54.5% 0.197 357.3)
XYZxyz(25.7004, 13.9841, 16.9654)
Luminance0.1398 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12771 #27C177
analogous
#C127BE #C12771 #C12A27
triadic
#C12771 #71C127 #2771C1
tetradic
#C12771 #BEC127 #27C177 #2A27C1
square
#C12771 #BEC127 #27C177 #2A27C1
split-complementary
#C12771 #27C12A #27BEC1
monochromatic
#5B1235 #8E1D53 #C12771 #DB4B90 #E57EAF

Accessibility & contrast

On white

5.53
#C12771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#C12771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12771
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12771#FFFFFF#000000##FFFFFF
##C127711.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5673
Deuteranopia (green-blind)
#74736E
Tritanopia (blue-blind)
#D10549
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #c12771;
/* rgb */ color: rgb(193, 39, 113);
/* oklch */ color: oklch(54.5% 0.197 357.3);
Tailwind
colors: {
  custom: {
    50: '#d97299',
    500: '#c12771',
    950: '#000000',
  },
}
SCSS
$custom: #c12771;
$custom-light: #d97299;
$custom-dark: #000000;
JSON
{
  "hex": "#c12771",
  "rgb": {
    "r": 193,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 331.169,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54495,
    "c": 0.19652,
    "h": 357.3
  },
  "luminance": 0.13981
}

Semantic roles & 50–950 ramp

primary
#C12771
secondary
#77CDA4
accent
#E9973E
background
#FEF7F9
surface
#FCEDF2
border
#D5C8CC
text
#16090E
muted
#847B7E

Preview Lab

Preview with #C12771

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

Preview Lab → · Contrast checker → · Palette generator →

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