#C12BA6#C12BA6

#C12BA6 is a mid, highly saturated pink. Relative luminance 0.158; OKLCH L 57.0% C 0.221 H 336.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#C12BA6
RGBrgb(193, 43, 166)
HSLhsl(311, 64%, 46%)
HSVhsv(311, 78%, 76%)
CMYKcmyk(0%, 77.7%, 14%, 24.3%)
CIE-LABlab(46.74, 69.02, -32.09)
CIE-LCHlch(46.74, 76.11, 335.06°)
OKLaboklab(57.03% 0.2033 -0.0875)
OKLCHoklch(57.03% 0.221 336.7)
XYZxyz(29.7397, 15.8212, 37.5565)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BA6 #2BC146
analogous
#912BC1 #C12BA6 #C12B5B
triadic
#C12BA6 #A6C12B #2BA6C1
tetradic
#C12BA6 #C1912B #2BC146 #2B5BC1
square
#C12BA6 #C1912B #2BC146 #2B5BC1
split-complementary
#C12BA6 #5BC12B #2BC191
monochromatic
#5D1550 #8F207B #C12BA6 #D851C0 #E383D2

Accessibility & contrast

On white

5.04
#C12BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#C12BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BA6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BA6#FFFFFF#000000##FFFFFF
##C12BA61.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A9
Deuteranopia (green-blind)
#6577A3
Tritanopia (blue-blind)
#CB3667
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12ba6;
/* rgb */ color: rgb(193, 43, 166);
/* oklch */ color: oklch(57.0% 0.221 336.7);
Tailwind
colors: {
  custom: {
    50: '#d875c1',
    500: '#c12ba6',
    950: '#000000',
  },
}
SCSS
$custom: #c12ba6;
$custom-light: #d875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c12ba6",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 310.8,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57028,
    "c": 0.22131,
    "h": 336.7
  },
  "luminance": 0.15818
}

Semantic roles & 50–950 ramp

primary
#C12BA6
secondary
#7BCC8A
accent
#E75F41
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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