#C12EB7#C12EB7

#C12EB7 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.230 H 331.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#C12EB7
RGBrgb(193, 46, 183)
HSLhsl(304, 62%, 47%)
HSVhsv(304, 76%, 76%)
CMYKcmyk(0%, 76.2%, 5.2%, 24.3%)
CIE-LABlab(47.90, 70.66, -40.29)
CIE-LCHlch(47.90, 81.34, 330.31°)
OKLaboklab(58.14% 0.2016 -0.1111)
OKLCHoklch(58.14% 0.23 331.1)
XYZxyz(31.5165, 16.7129, 46.3566)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12EB7 #2EC138
analogous
#822EC1 #C12EB7 #C12E6D
triadic
#C12EB7 #B7C12E #2EB7C1
tetradic
#C12EB7 #C1822E #2EC138 #2E6DC1
square
#C12EB7 #C1822E #2EC138 #2E6DC1
split-complementary
#C12EB7 #6DC12E #2EC182
monochromatic
#5E1659 #902288 #C12EB7 #D756CE #E287DC

Accessibility & contrast

On white

4.84
#C12EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#C12EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12EB7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12EB7#FFFFFF#000000##FFFFFF
##C12EB71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#C94171
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c12eb7;
/* rgb */ color: rgb(193, 46, 183);
/* oklch */ color: oklch(58.1% 0.230 331.1);
Tailwind
colors: {
  custom: {
    50: '#d877cd',
    500: '#c12eb7',
    950: '#000000',
  },
}
SCSS
$custom: #c12eb7;
$custom-light: #d877cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c12eb7",
  "rgb": {
    "r": 193,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 304.082,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58137,
    "c": 0.2302,
    "h": 331.1
  },
  "luminance": 0.1671
}

Semantic roles & 50–950 ramp

primary
#C12EB7
secondary
#7FCC84
accent
#E54E43
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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