#C12BAB#C12BAB

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

Color values

HEX#C12BAB
RGBrgb(193, 43, 171)
HSLhsl(309, 64%, 46%)
HSVhsv(309, 78%, 76%)
CMYKcmyk(0%, 77.7%, 11.4%, 24.3%)
CIE-LABlab(46.99, 69.73, -34.67)
CIE-LCHlch(46.99, 77.87, 333.56°)
OKLaboklab(57.28% 0.2036 -0.0948)
OKLCHoklch(57.28% 0.225 335)
XYZxyz(30.2073, 16.0082, 40.0192)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BAB #2BC141
analogous
#8C2BC1 #C12BAB #C12B60
triadic
#C12BAB #ABC12B #2BABC1
tetradic
#C12BAB #C18C2B #2BC141 #2B60C1
square
#C12BAB #C18C2B #2BC141 #2B60C1
split-complementary
#C12BAB #60C12B #2BC18C
monochromatic
#5D1552 #8F207F #C12BAB #D851C4 #E383D5

Accessibility & contrast

On white

5.00
#C12BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#C12BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BAB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BAB#FFFFFF#000000##FFFFFF
##C12BAB1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AE
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#CB396A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12bab;
/* rgb */ color: rgb(193, 43, 171);
/* oklch */ color: oklch(57.3% 0.225 335.0);
Tailwind
colors: {
  custom: {
    50: '#d876c4',
    500: '#c12bab',
    950: '#000000',
  },
}
SCSS
$custom: #c12bab;
$custom-light: #d876c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c12bab",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 308.8,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57284,
    "c": 0.22465,
    "h": 335
  },
  "luminance": 0.16005
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C12BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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