#C12BA8#C12BA8

#C12BA8 is a mid, highly saturated pink. Relative luminance 0.159; OKLCH L 57.1% C 0.223 H 336.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C12BA8
RGBrgb(193, 43, 168)
HSLhsl(310, 64%, 46%)
HSVhsv(310, 78%, 76%)
CMYKcmyk(0%, 77.7%, 13%, 24.3%)
CIE-LABlab(46.84, 69.30, -33.12)
CIE-LCHlch(46.84, 76.81, 334.45°)
OKLaboklab(57.13% 0.2034 -0.0904)
OKLCHoklch(57.13% 0.223 336)
XYZxyz(29.9246, 15.8952, 38.5303)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BA8 #2BC144
analogous
#8F2BC1 #C12BA8 #C12B5D
triadic
#C12BA8 #A8C12B #2BA8C1
tetradic
#C12BA8 #C18F2B #2BC144 #2B5DC1
square
#C12BA8 #C18F2B #2BC144 #2B5DC1
split-complementary
#C12BA8 #5DC12B #2BC18F
monochromatic
#5D1551 #8F207C #C12BA8 #D851C2 #E383D3

Accessibility & contrast

On white

5.03
#C12BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#C12BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BA8
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BA8#FFFFFF#000000##FFFFFF
##C12BA81.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AB
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#CB3768
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12ba8;
/* rgb */ color: rgb(193, 43, 168);
/* oklch */ color: oklch(57.1% 0.223 336.0);
Tailwind
colors: {
  custom: {
    50: '#d876c2',
    500: '#c12ba8',
    950: '#000000',
  },
}
SCSS
$custom: #c12ba8;
$custom-light: #d876c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c12ba8",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 310,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57129,
    "c": 0.22263,
    "h": 336
  },
  "luminance": 0.15892
}

Semantic roles & 50–950 ramp

primary
#C12BA8
secondary
#7BCC89
accent
#E75D41
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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