#C12FB4#C12FB4

#C12FB4 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.227 H 332.1°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#C12FB4
RGBrgb(193, 47, 180)
HSLhsl(305, 61%, 47%)
HSVhsv(305, 76%, 76%)
CMYKcmyk(0%, 75.6%, 6.7%, 24.3%)
CIE-LABlab(47.84, 69.92, -38.62)
CIE-LCHlch(47.84, 79.87, 331.08°)
OKLaboklab(58.05% 0.2007 -0.1063)
OKLCHoklch(58.05% 0.227 332.1)
XYZxyz(31.2471, 16.6684, 44.7428)
Luminance0.1667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FB4 #2FC13C
analogous
#852FC1 #C12FB4 #C12F6B
triadic
#C12FB4 #B4C12F #2FB4C1
tetradic
#C12FB4 #C1852F #2FC13C #2F6BC1
square
#C12FB4 #C1852F #2FC13C #2F6BC1
split-complementary
#C12FB4 #6BC12F #2FC185
monochromatic
#5F1758 #902386 #C12FB4 #D657CB #E288DA

Accessibility & contrast

On white

4.85
#C12FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#C12FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12FB4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FB4#FFFFFF#000000##FFFFFF
##C12FB41.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B8
Deuteranopia (green-blind)
#6079B1
Tritanopia (blue-blind)
#C94070
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c12fb4;
/* rgb */ color: rgb(193, 47, 180);
/* oklch */ color: oklch(58.0% 0.227 332.1);
Tailwind
colors: {
  custom: {
    50: '#d878cb',
    500: '#c12fb4',
    950: '#000000',
  },
}
SCSS
$custom: #c12fb4;
$custom-light: #d878cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c12fb4",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 305.342,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58045,
    "c": 0.22711,
    "h": 332.1
  },
  "luminance": 0.16666
}

Semantic roles & 50–950 ramp

primary
#C12FB4
secondary
#80CC87
accent
#E45244
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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