#C12BAC#C12BAC

#C12BAC is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.3% C 0.225 H 334.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#C12BAC
RGBrgb(193, 43, 172)
HSLhsl(308, 64%, 46%)
HSVhsv(308, 78%, 76%)
CMYKcmyk(0%, 77.7%, 10.9%, 24.3%)
CIE-LABlab(47.04, 69.87, -35.18)
CIE-LCHlch(47.04, 78.23, 333.27°)
OKLaboklab(57.34% 0.2037 -0.0963)
OKLCHoklch(57.34% 0.225 334.7)
XYZxyz(30.3030, 16.0465, 40.5231)
Luminance0.1604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BAC #2BC140
analogous
#8B2BC1 #C12BAC #C12B61
triadic
#C12BAC #ACC12B #2BACC1
tetradic
#C12BAC #C18B2B #2BC140 #2B61C1
square
#C12BAC #C18B2B #2BC140 #2B61C1
split-complementary
#C12BAC #61C12B #2BC18B
monochromatic
#5D1553 #8F207F #C12BAC #D851C5 #E383D6

Accessibility & contrast

On white

4.99
#C12BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#C12BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BAC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BAC#FFFFFF#000000##FFFFFF
##C12BAC1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2962AF
Deuteranopia (green-blind)
#6277A9
Tritanopia (blue-blind)
#CB396A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12bac;
/* rgb */ color: rgb(193, 43, 172);
/* oklch */ color: oklch(57.3% 0.225 334.7);
Tailwind
colors: {
  custom: {
    50: '#d876c5',
    500: '#c12bac',
    950: '#000000',
  },
}
SCSS
$custom: #c12bac;
$custom-light: #d876c5;
$custom-dark: #000000;
JSON
{
  "hex": "#c12bac",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 308.4,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57336,
    "c": 0.22532,
    "h": 334.7
  },
  "luminance": 0.16044
}

Semantic roles & 50–950 ramp

primary
#C12BAC
secondary
#7BCC87
accent
#E75841
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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