#C12BA7#C12BA7

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

Color values

HEX#C12BA7
RGBrgb(193, 43, 167)
HSLhsl(310, 64%, 46%)
HSVhsv(310, 78%, 76%)
CMYKcmyk(0%, 77.7%, 13.5%, 24.3%)
CIE-LABlab(46.79, 69.16, -32.61)
CIE-LCHlch(46.79, 76.46, 334.76°)
OKLaboklab(57.08% 0.2034 -0.0889)
OKLCHoklch(57.08% 0.222 336.4)
XYZxyz(29.8318, 15.8580, 38.0415)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BA7 #2BC145
analogous
#902BC1 #C12BA7 #C12B5C
triadic
#C12BA7 #A7C12B #2BA7C1
tetradic
#C12BA7 #C1902B #2BC145 #2B5CC1
square
#C12BA7 #C1902B #2BC145 #2B5CC1
split-complementary
#C12BA7 #5CC12B #2BC190
monochromatic
#5D1550 #8F207C #C12BA7 #D851C1 #E383D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C12BA7#FFFFFF#000000##FFFFFF
##C12BA71.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)
#2E61AA
Deuteranopia (green-blind)
#6477A4
Tritanopia (blue-blind)
#CB3767
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12ba7;
/* rgb */ color: rgb(193, 43, 167);
/* oklch */ color: oklch(57.1% 0.222 336.4);
Tailwind
colors: {
  custom: {
    50: '#d876c1',
    500: '#c12ba7',
    950: '#000000',
  },
}
SCSS
$custom: #c12ba7;
$custom-light: #d876c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c12ba7",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 310.4,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57078,
    "c": 0.22197,
    "h": 336.4
  },
  "luminance": 0.15855
}

Semantic roles & 50–950 ramp

primary
#C12BA7
secondary
#7BCC89
accent
#E75E41
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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