#C12CB8#C12CB8

#C12CB8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.1% C 0.233 H 330.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C12CB8
RGBrgb(193, 44, 184)
HSLhsl(304, 63%, 46%)
HSVhsv(304, 77%, 76%)
CMYKcmyk(0%, 77.2%, 4.7%, 24.3%)
CIE-LABlab(47.75, 71.37, -41.10)
CIE-LCHlch(47.75, 82.36, 330.06°)
OKLaboklab(58.05% 0.2032 -0.1134)
OKLCHoklch(58.05% 0.233 330.8)
XYZxyz(31.5447, 16.6021, 46.8812)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12CB8 #2CC135
analogous
#802CC1 #C12CB8 #C12C6E
triadic
#C12CB8 #B8C12C #2CB8C1
tetradic
#C12CB8 #C1802C #2CC135 #2C6EC1
square
#C12CB8 #C1802C #2CC135 #2C6EC1
split-complementary
#C12CB8 #6EC12C #2CC180
monochromatic
#5D1559 #8F2188 #C12CB8 #D853D0 #E384DD

Accessibility & contrast

On white

4.86
#C12CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#C12CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12CB8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12CB8#FFFFFF#000000##FFFFFF
##C12CB81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1964BC
Deuteranopia (green-blind)
#5D78B4
Tritanopia (blue-blind)
#C94171
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c12cb8;
/* rgb */ color: rgb(193, 44, 184);
/* oklch */ color: oklch(58.1% 0.233 330.8);
Tailwind
colors: {
  custom: {
    50: '#d877ce',
    500: '#c12cb8',
    950: '#000000',
  },
}
SCSS
$custom: #c12cb8;
$custom-light: #d877ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c12cb8",
  "rgb": {
    "r": 193,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 303.624,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.58053,
    "c": 0.23276,
    "h": 330.8
  },
  "luminance": 0.166
}

Semantic roles & 50–950 ramp

primary
#C12CB8
secondary
#7DCC81
accent
#E64C42
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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