#C12BA9#C12BA9

#C12BA9 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.223 H 335.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C12BA9
RGBrgb(193, 43, 169)
HSLhsl(310, 64%, 46%)
HSVhsv(310, 78%, 76%)
CMYKcmyk(0%, 77.7%, 12.4%, 24.3%)
CIE-LABlab(46.89, 69.44, -33.64)
CIE-LCHlch(46.89, 77.16, 334.15°)
OKLaboklab(57.18% 0.2035 -0.0919)
OKLCHoklch(57.18% 0.223 335.7)
XYZxyz(30.0181, 15.9326, 39.0228)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BA9 #2BC143
analogous
#8E2BC1 #C12BA9 #C12B5E
triadic
#C12BA9 #A9C12B #2BA9C1
tetradic
#C12BA9 #C18E2B #2BC143 #2B5EC1
square
#C12BA9 #C18E2B #2BC143 #2B5EC1
split-complementary
#C12BA9 #5EC12B #2BC18E
monochromatic
#5D1551 #8F207D #C12BA9 #D851C3 #E383D4

Accessibility & contrast

On white

5.02
#C12BA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#C12BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BA9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BA9#FFFFFF#000000##FFFFFF
##C12BA91.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C61AC
Deuteranopia (green-blind)
#6477A6
Tritanopia (blue-blind)
#CB3868
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12ba9;
/* rgb */ color: rgb(193, 43, 169);
/* oklch */ color: oklch(57.2% 0.223 335.7);
Tailwind
colors: {
  custom: {
    50: '#d876c3',
    500: '#c12ba9',
    950: '#000000',
  },
}
SCSS
$custom: #c12ba9;
$custom-light: #d876c3;
$custom-dark: #000000;
JSON
{
  "hex": "#c12ba9",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 309.6,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57181,
    "c": 0.2233,
    "h": 335.7
  },
  "luminance": 0.1593
}

Semantic roles & 50–950 ramp

primary
#C12BA9
secondary
#7BCC88
accent
#E75C41
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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