#C12BA5#C12BA5

#C12BA5 is a mid, highly saturated pink. Relative luminance 0.158; OKLCH L 57.0% C 0.221 H 337.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#C12BA5
RGBrgb(193, 43, 165)
HSLhsl(311, 64%, 46%)
HSVhsv(311, 78%, 76%)
CMYKcmyk(0%, 77.7%, 14.5%, 24.3%)
CIE-LABlab(46.69, 68.88, -31.57)
CIE-LCHlch(46.69, 75.77, 335.37°)
OKLaboklab(56.98% 0.2032 -0.086)
OKLCHoklch(56.98% 0.221 337.1)
XYZxyz(29.6483, 15.7847, 37.0753)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12BA5 #2BC147
analogous
#922BC1 #C12BA5 #C12B5A
triadic
#C12BA5 #A5C12B #2BA5C1
tetradic
#C12BA5 #C1922B #2BC147 #2B5AC1
square
#C12BA5 #C1922B #2BC147 #2B5AC1
split-complementary
#C12BA5 #5AC12B #2BC192
monochromatic
#5D154F #8F207A #C12BA5 #D851BF #E383D1

Accessibility & contrast

On white

5.05
#C12BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#C12BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12BA5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12BA5#FFFFFF#000000##FFFFFF
##C12BA51.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3060A8
Deuteranopia (green-blind)
#6577A2
Tritanopia (blue-blind)
#CB3566
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #c12ba5;
/* rgb */ color: rgb(193, 43, 165);
/* oklch */ color: oklch(57.0% 0.221 337.1);
Tailwind
colors: {
  custom: {
    50: '#d875c0',
    500: '#c12ba5',
    950: '#000000',
  },
}
SCSS
$custom: #c12ba5;
$custom-light: #d875c0;
$custom-dark: #000000;
JSON
{
  "hex": "#c12ba5",
  "rgb": {
    "r": 193,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 311.2,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56977,
    "c": 0.22064,
    "h": 337.1
  },
  "luminance": 0.15782
}

Semantic roles & 50–950 ramp

primary
#C12BA5
secondary
#7BCC8B
accent
#E76041
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #C12BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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