#C12FB8#C12FB8

#C12FB8 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.3% C 0.230 H 330.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C12FB8
RGBrgb(193, 47, 184)
HSLhsl(304, 61%, 47%)
HSVhsv(304, 76%, 76%)
CMYKcmyk(0%, 75.6%, 4.7%, 24.3%)
CIE-LABlab(48.05, 70.52, -40.63)
CIE-LCHlch(48.05, 81.39, 330.05°)
OKLaboklab(58.26% 0.2008 -0.1121)
OKLCHoklch(58.26% 0.23 330.8)
XYZxyz(31.6605, 16.8337, 46.9198)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C12FB8 #2FC138
analogous
#812FC1 #C12FB8 #C12F6F
triadic
#C12FB8 #B8C12F #2FB8C1
tetradic
#C12FB8 #C1812F #2FC138 #2F6FC1
square
#C12FB8 #C1812F #2FC138 #2F6FC1
split-complementary
#C12FB8 #6FC12F #2FC181
monochromatic
#5F175A #902389 #C12FB8 #D657CE #E288DD

Accessibility & contrast

On white

4.81
#C12FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#C12FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C12FB8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C12FB8#FFFFFF#000000##FFFFFF
##C12FB81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BC
Deuteranopia (green-blind)
#5E79B5
Tritanopia (blue-blind)
#C94372
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c12fb8;
/* rgb */ color: rgb(193, 47, 184);
/* oklch */ color: oklch(58.3% 0.230 330.8);
Tailwind
colors: {
  custom: {
    50: '#d878ce',
    500: '#c12fb8',
    950: '#000000',
  },
}
SCSS
$custom: #c12fb8;
$custom-light: #d878ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c12fb8",
  "rgb": {
    "r": 193,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 303.699,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.58264,
    "c": 0.22997,
    "h": 330.8
  },
  "luminance": 0.16831
}

Semantic roles & 50–950 ramp

primary
#C12FB8
secondary
#80CC85
accent
#E44E44
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C12FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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