#C12DAB#C12DAB

#C12DAB is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.223 H 335.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#C12DAB
RGBrgb(193, 45, 171)
HSLhsl(309, 62%, 47%)
HSVhsv(309, 77%, 76%)
CMYKcmyk(0%, 76.7%, 11.4%, 24.3%)
CIE-LABlab(47.18, 69.17, -34.36)
CIE-LCHlch(47.18, 77.23, 333.58°)
OKLaboklab(57.42% 0.202 -0.094)
OKLCHoklch(57.42% 0.223 335)
XYZxyz(30.2818, 16.1572, 40.0440)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12DAB #2DC143
analogous
#8D2DC1 #C12DAB #C12D61
triadic
#C12DAB #ABC12D #2DABC1
tetradic
#C12DAB #C18D2D #2DC143 #2D61C1
square
#C12DAB #C18D2D #2DC143 #2D61C1
split-complementary
#C12DAB #61C12D #2DC18D
monochromatic
#5E1653 #8F217F #C12DAB #D754C4 #E386D5

Accessibility & contrast

On white

4.96
#C12DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#C12DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12DAB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12DAB#FFFFFF#000000##FFFFFF
##C12DAB1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C62AE
Deuteranopia (green-blind)
#6378A8
Tritanopia (blue-blind)
#CB3A6A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c12dab;
/* rgb */ color: rgb(193, 45, 171);
/* oklch */ color: oklch(57.4% 0.223 335.0);
Tailwind
colors: {
  custom: {
    50: '#d876c4',
    500: '#c12dab',
    950: '#000000',
  },
}
SCSS
$custom: #c12dab;
$custom-light: #d876c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c12dab",
  "rgb": {
    "r": 193,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 308.919,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57424,
    "c": 0.22277,
    "h": 335
  },
  "luminance": 0.16155
}

Semantic roles & 50–950 ramp

primary
#C12DAB
secondary
#7ECC89
accent
#E55B43
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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