#C12FB7#C12FB7

#C12FB7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.2% C 0.229 H 331.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#C12FB7
RGBrgb(193, 47, 183)
HSLhsl(304, 61%, 47%)
HSVhsv(304, 76%, 76%)
CMYKcmyk(0%, 75.6%, 5.2%, 24.3%)
CIE-LABlab(48.00, 70.37, -40.13)
CIE-LCHlch(48.00, 81.01, 330.30°)
OKLaboklab(58.21% 0.2008 -0.1106)
OKLCHoklch(58.21% 0.229 331.1)
XYZxyz(31.5561, 16.7920, 46.3697)
Luminance0.1679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FB7 #2FC139
analogous
#822FC1 #C12FB7 #C12F6E
triadic
#C12FB7 #B7C12F #2FB7C1
tetradic
#C12FB7 #C1822F #2FC139 #2F6EC1
square
#C12FB7 #C1822F #2FC139 #2F6EC1
split-complementary
#C12FB7 #6EC12F #2FC182
monochromatic
#5F175A #902388 #C12FB7 #D657CD #E288DC

Accessibility & contrast

On white

4.82
#C12FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#C12FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12FB7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FB7#FFFFFF#000000##FFFFFF
##C12FB71.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2065BB
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#C94271
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c12fb7;
/* rgb */ color: rgb(193, 47, 183);
/* oklch */ color: oklch(58.2% 0.229 331.1);
Tailwind
colors: {
  custom: {
    50: '#d878cd',
    500: '#c12fb7',
    950: '#000000',
  },
}
SCSS
$custom: #c12fb7;
$custom-light: #d878cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c12fb7",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 304.11,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58209,
    "c": 0.22925,
    "h": 331.1
  },
  "luminance": 0.16789
}

Semantic roles & 50–950 ramp

primary
#C12FB7
secondary
#80CC85
accent
#E44F44
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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