#C12FAF#C12FAF

#C12FAF is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.224 H 333.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C12FAF
RGBrgb(193, 47, 175)
HSLhsl(307, 61%, 47%)
HSVhsv(307, 76%, 76%)
CMYKcmyk(0%, 75.6%, 9.3%, 24.3%)
CIE-LABlab(47.58, 69.17, -36.09)
CIE-LCHlch(47.58, 78.02, 332.45°)
OKLaboklab(57.78% 0.2005 -0.099)
OKLCHoklch(57.78% 0.224 333.7)
XYZxyz(30.7470, 16.4683, 42.1085)
Luminance0.1647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FAF #2FC141
analogous
#8A2FC1 #C12FAF #C12F66
triadic
#C12FAF #AFC12F #2FAFC1
tetradic
#C12FAF #C18A2F #2FC141 #2F66C1
square
#C12FAF #C18A2F #2FC141 #2F66C1
split-complementary
#C12FAF #66C12F #2FC18A
monochromatic
#5F1756 #902382 #C12FAF #D657C6 #E288D7

Accessibility & contrast

On white

4.89
#C12FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C12FAF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FAF#FFFFFF#000000##FFFFFF
##C12FAF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#6278AC
Tritanopia (blue-blind)
#CA3E6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c12faf;
/* rgb */ color: rgb(193, 47, 175);
/* oklch */ color: oklch(57.8% 0.224 333.7);
Tailwind
colors: {
  custom: {
    50: '#d877c7',
    500: '#c12faf',
    950: '#000000',
  },
}
SCSS
$custom: #c12faf;
$custom-light: #d877c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c12faf",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 307.397,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57778,
    "c": 0.22359,
    "h": 333.7
  },
  "luminance": 0.16466
}

Semantic roles & 50–950 ramp

primary
#C12FAF
secondary
#80CC89
accent
#E45844
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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