#C12FBB#C12FBB

#C12FBB is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.232 H 329.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C12FBB
RGBrgb(193, 47, 187)
HSLhsl(302, 61%, 47%)
HSVhsv(302, 76%, 76%)
CMYKcmyk(0%, 75.6%, 3.1%, 24.3%)
CIE-LABlab(48.21, 70.99, -42.13)
CIE-LCHlch(48.21, 82.55, 329.31°)
OKLaboklab(58.43% 0.2008 -0.1164)
OKLCHoklch(58.43% 0.232 329.9)
XYZxyz(31.9783, 16.9609, 48.5936)
Luminance0.1696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FBB #2FC135
analogous
#7E2FC1 #C12FBB #C12F72
triadic
#C12FBB #BBC12F #2FBBC1
tetradic
#C12FBB #C17E2F #2FC135 #2F72C1
square
#C12FBB #C17E2F #2FC135 #2F72C1
split-complementary
#C12FBB #72C12F #2FC17E
monochromatic
#5F175C #90238B #C12FBB #D657D1 #E288DE

Accessibility & contrast

On white

4.78
#C12FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#C12FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12FBB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FBB#FFFFFF#000000##FFFFFF
##C12FBB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#5C79B7
Tritanopia (blue-blind)
#C84474
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c12fbb;
/* rgb */ color: rgb(193, 47, 187);
/* oklch */ color: oklch(58.4% 0.232 329.9);
Tailwind
colors: {
  custom: {
    50: '#d878d0',
    500: '#c12fbb',
    950: '#000000',
  },
}
SCSS
$custom: #c12fbb;
$custom-light: #d878d0;
$custom-dark: #000000;
JSON
{
  "hex": "#c12fbb",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 302.466,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58431,
    "c": 0.23214,
    "h": 329.9
  },
  "luminance": 0.16958
}

Semantic roles & 50–950 ramp

primary
#C12FBB
secondary
#80CC83
accent
#E44A44
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C12FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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