#C12DC7#C12DC7

#C12DC7 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 59.0% C 0.243 H 326.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#C12DC7
RGBrgb(193, 45, 199)
HSLhsl(298, 63%, 48%)
HSVhsv(298, 77%, 78%)
CMYKcmyk(3%, 77.4%, 0%, 22%)
CIE-LABlab(48.69, 73.45, -48.35)
CIE-LCHlch(48.69, 87.93, 326.65°)
OKLaboklab(58.99% 0.2021 -0.1345)
OKLCHoklch(58.99% 0.243 326.4)
XYZxyz(33.2389, 17.3401, 55.6180)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12DC7 #33C72D
analogous
#742DC7 #C12DC7 #C72D80
triadic
#C12DC7 #C7C12D #2DC7C1
tetradic
#C12DC7 #C7742D #33C72D #2D80C7
square
#C12DC7 #C7742D #33C72D #2D80C7
split-complementary
#C12DC7 #80C72D #2DC774
monochromatic
#601663 #912295 #C12DC7 #D458D9 #E18AE5

Accessibility & contrast

On white

4.70
#C12DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#C12DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12DC7
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12DC7#FFFFFF#000000##FFFFFF
##C12DC71.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#547AC3
Tritanopia (blue-blind)
#C6497A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c12dc7;
/* rgb */ color: rgb(193, 45, 199);
/* oklch */ color: oklch(59.0% 0.243 326.4);
Tailwind
colors: {
  custom: {
    50: '#d878d9',
    500: '#c12dc7',
    950: '#000000',
  },
}
SCSS
$custom: #c12dc7;
$custom-light: #d878d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c12dc7",
  "rgb": {
    "r": 193,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 297.662,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58985,
    "c": 0.24277,
    "h": 326.4
  },
  "luminance": 0.17338
}

Semantic roles & 50–950 ramp

primary
#C12DC7
secondary
#84CE81
accent
#E64248
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #C12DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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