#C12FB5#C12FB5

#C12FB5 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.228 H 331.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#C12FB5
RGBrgb(193, 47, 181)
HSLhsl(305, 61%, 47%)
HSVhsv(305, 76%, 76%)
CMYKcmyk(0%, 75.6%, 6.2%, 24.3%)
CIE-LABlab(47.89, 70.07, -39.13)
CIE-LCHlch(47.89, 80.25, 330.82°)
OKLaboklab(58.1% 0.2007 -0.1077)
OKLCHoklch(58.1% 0.228 331.8)
XYZxyz(31.3494, 16.7093, 45.2812)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FB5 #2FC13B
analogous
#842FC1 #C12FB5 #C12F6C
triadic
#C12FB5 #B5C12F #2FB5C1
tetradic
#C12FB5 #C1842F #2FC13B #2F6CC1
square
#C12FB5 #C1842F #2FC13B #2F6CC1
split-complementary
#C12FB5 #6CC12F #2FC184
monochromatic
#5F1759 #902387 #C12FB5 #D657CC #E288DB

Accessibility & contrast

On white

4.84
#C12FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#C12FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12FB5
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FB5#FFFFFF#000000##FFFFFF
##C12FB51.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2365B9
Deuteranopia (green-blind)
#5F79B2
Tritanopia (blue-blind)
#C94170
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c12fb5;
/* rgb */ color: rgb(193, 47, 181);
/* oklch */ color: oklch(58.1% 0.228 331.8);
Tailwind
colors: {
  custom: {
    50: '#d878cb',
    500: '#c12fb5',
    950: '#000000',
  },
}
SCSS
$custom: #c12fb5;
$custom-light: #d878cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c12fb5",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 304.932,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58099,
    "c": 0.22782,
    "h": 331.8
  },
  "luminance": 0.16707
}

Semantic roles & 50–950 ramp

primary
#C12FB5
secondary
#80CC86
accent
#E45144
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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