#C12CB4#C12CB4

#C12CB4 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.230 H 332.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C12CB4
RGBrgb(193, 44, 180)
HSLhsl(305, 63%, 46%)
HSVhsv(305, 77%, 76%)
CMYKcmyk(0%, 77.2%, 6.7%, 24.3%)
CIE-LABlab(47.54, 70.77, -39.09)
CIE-LCHlch(47.54, 80.85, 331.08°)
OKLaboklab(57.83% 0.2032 -0.1076)
OKLCHoklch(57.83% 0.23 332.1)
XYZxyz(31.1313, 16.4367, 44.7042)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12CB4 #2CC139
analogous
#842CC1 #C12CB4 #C12C6A
triadic
#C12CB4 #B4C12C #2CB4C1
tetradic
#C12CB4 #C1842C #2CC139 #2C6AC1
square
#C12CB4 #C1842C #2CC139 #2C6AC1
split-complementary
#C12CB4 #6AC12C #2CC184
monochromatic
#5D1557 #8F2186 #C12CB4 #D853CC #E384DB

Accessibility & contrast

On white

4.90
#C12CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#C12CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12CB4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12CB4#FFFFFF#000000##FFFFFF
##C12CB41.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B8
Deuteranopia (green-blind)
#5F78B1
Tritanopia (blue-blind)
#C93F6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c12cb4;
/* rgb */ color: rgb(193, 44, 180);
/* oklch */ color: oklch(57.8% 0.230 332.1);
Tailwind
colors: {
  custom: {
    50: '#d876cb',
    500: '#c12cb4',
    950: '#000000',
  },
}
SCSS
$custom: #c12cb4;
$custom-light: #d876cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c12cb4",
  "rgb": {
    "r": 193,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 305.235,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.57833,
    "c": 0.22993,
    "h": 332.1
  },
  "luminance": 0.16434
}

Semantic roles & 50–950 ramp

primary
#C12CB4
secondary
#7DCC83
accent
#E65042
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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