#C12BAF#C12BAF

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

Color values

HEX#C12BAF
RGBrgb(193, 43, 175)
HSLhsl(307, 64%, 46%)
HSVhsv(307, 78%, 76%)
CMYKcmyk(0%, 77.7%, 9.3%, 24.3%)
CIE-LABlab(47.19, 70.30, -36.71)
CIE-LCHlch(47.19, 79.31, 332.43°)
OKLaboklab(57.5% 0.2038 -0.1007)
OKLCHoklch(57.5% 0.227 333.7)
XYZxyz(30.5943, 16.1631, 42.0576)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BAF #2BC13D
analogous
#882BC1 #C12BAF #C12B64
triadic
#C12BAF #AFC12B #2BAFC1
tetradic
#C12BAF #C1882B #2BC13D #2B64C1
square
#C12BAF #C1882B #2BC13D #2B64C1
split-complementary
#C12BAF #64C12B #2BC188
monochromatic
#5D1554 #8F2082 #C12BAF #D851C8 #E383D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C12BAF#FFFFFF#000000##FFFFFF
##C12BAF1.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)
#2562B2
Deuteranopia (green-blind)
#6177AC
Tritanopia (blue-blind)
#CA3B6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #c12baf;
/* rgb */ color: rgb(193, 43, 175);
/* oklch */ color: oklch(57.5% 0.227 333.7);
Tailwind
colors: {
  custom: {
    50: '#d876c7',
    500: '#c12baf',
    950: '#000000',
  },
}
SCSS
$custom: #c12baf;
$custom-light: #d876c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c12baf",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 307.2,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57495,
    "c": 0.22737,
    "h": 333.7
  },
  "luminance": 0.1616
}

Semantic roles & 50–950 ramp

primary
#C12BAF
secondary
#7BCC85
accent
#E75541
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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