#C12DC9#C12DC9

#C12DC9 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 59.1% C 0.244 H 325.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#C12DC9
RGBrgb(193, 45, 201)
HSLhsl(297, 63%, 48%)
HSVhsv(297, 78%, 79%)
CMYKcmyk(4%, 77.6%, 0%, 21.2%)
CIE-LABlab(48.80, 73.77, -49.32)
CIE-LCHlch(48.80, 88.74, 326.24°)
OKLaboklab(59.11% 0.202 -0.1373)
OKLCHoklch(59.11% 0.244 325.8)
XYZxyz(33.4726, 17.4336, 56.8490)
Luminance0.1743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12DC9 #35C92D
analogous
#732DC9 #C12DC9 #C92D83
triadic
#C12DC9 #C9C12D #2DC9C1
tetradic
#C12DC9 #C9732D #35C92D #2D83C9
square
#C12DC9 #C9732D #35C92D #2D83C9
split-complementary
#C12DC9 #83C92D #2DC973
monochromatic
#611765 #912297 #C12DC9 #D359DA #E08BE5

Accessibility & contrast

On white

4.68
#C12DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#C12DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12DC9
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12DC9#FFFFFF#000000##FFFFFF
##C12DC91.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CD
Deuteranopia (green-blind)
#527AC5
Tritanopia (blue-blind)
#C64A7B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c12dc9;
/* rgb */ color: rgb(193, 45, 201);
/* oklch */ color: oklch(59.1% 0.244 325.8);
Tailwind
colors: {
  custom: {
    50: '#d878da',
    500: '#c12dc9',
    950: '#000000',
  },
}
SCSS
$custom: #c12dc9;
$custom-light: #d878da;
$custom-dark: #000000;
JSON
{
  "hex": "#c12dc9",
  "rgb": {
    "r": 193,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 296.923,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.59105,
    "c": 0.24426,
    "h": 325.8
  },
  "luminance": 0.17431
}

Semantic roles & 50–950 ramp

primary
#C12DC9
secondary
#87CF83
accent
#E6414A
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #C12DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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