#C12FB2#C12FB2

#C12FB2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.226 H 332.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C12FB2
RGBrgb(193, 47, 178)
HSLhsl(306, 61%, 47%)
HSVhsv(306, 76%, 76%)
CMYKcmyk(0%, 75.6%, 7.8%, 24.3%)
CIE-LABlab(47.74, 69.62, -37.61)
CIE-LCHlch(47.74, 79.13, 331.62°)
OKLaboklab(57.94% 0.2006 -0.1034)
OKLCHoklch(57.94% 0.226 332.7)
XYZxyz(31.0449, 16.5875, 43.6775)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FB2 #2FC13E
analogous
#872FC1 #C12FB2 #C12F69
triadic
#C12FB2 #B2C12F #2FB2C1
tetradic
#C12FB2 #C1872F #2FC13E #2F69C1
square
#C12FB2 #C1872F #2FC13E #2F69C1
split-complementary
#C12FB2 #69C12F #2FC187
monochromatic
#5F1757 #902385 #C12FB2 #D657C9 #E288D9

Accessibility & contrast

On white

4.86
#C12FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#C12FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12FB2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FB2#FFFFFF#000000##FFFFFF
##C12FB21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#CA3F6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c12fb2;
/* rgb */ color: rgb(193, 47, 178);
/* oklch */ color: oklch(57.9% 0.226 332.7);
Tailwind
colors: {
  custom: {
    50: '#d877c9',
    500: '#c12fb2',
    950: '#000000',
  },
}
SCSS
$custom: #c12fb2;
$custom-light: #d877c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c12fb2",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 306.164,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57938,
    "c": 0.2257,
    "h": 332.7
  },
  "luminance": 0.16585
}

Semantic roles & 50–950 ramp

primary
#C12FB2
secondary
#80CC88
accent
#E45444
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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