#C12BAD#C12BAD

#C12BAD is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.226 H 334.4°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C12BAD
RGBrgb(193, 43, 173)
HSLhsl(308, 64%, 46%)
HSVhsv(308, 78%, 76%)
CMYKcmyk(0%, 77.7%, 10.4%, 24.3%)
CIE-LABlab(47.09, 70.01, -35.69)
CIE-LCHlch(47.09, 78.59, 332.99°)
OKLaboklab(57.39% 0.2037 -0.0978)
OKLCHoklch(57.39% 0.226 334.4)
XYZxyz(30.3994, 16.0851, 41.0308)
Luminance0.1608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BAD #2BC13F
analogous
#8A2BC1 #C12BAD #C12B62
triadic
#C12BAD #ADC12B #2BADC1
tetradic
#C12BAD #C18A2B #2BC13F #2B62C1
square
#C12BAD #C18A2B #2BC13F #2B62C1
split-complementary
#C12BAD #62C12B #2BC18A
monochromatic
#5D1553 #8F2080 #C12BAD #D851C6 #E383D7

Accessibility & contrast

On white

4.98
#C12BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#C12BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BAD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BAD#FFFFFF#000000##FFFFFF
##C12BAD1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2862B0
Deuteranopia (green-blind)
#6277AA
Tritanopia (blue-blind)
#CA3A6B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c12bad;
/* rgb */ color: rgb(193, 43, 173);
/* oklch */ color: oklch(57.4% 0.226 334.4);
Tailwind
colors: {
  custom: {
    50: '#d876c6',
    500: '#c12bad',
    950: '#000000',
  },
}
SCSS
$custom: #c12bad;
$custom-light: #d876c6;
$custom-dark: #000000;
JSON
{
  "hex": "#c12bad",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 308,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57389,
    "c": 0.226,
    "h": 334.4
  },
  "luminance": 0.16082
}

Semantic roles & 50–950 ramp

primary
#C12BAD
secondary
#7BCC86
accent
#E75741
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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