#C128C5#C128C5

#C128C5 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.5% C 0.245 H 327.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C128C5
RGBrgb(193, 40, 197)
HSLhsl(298, 66%, 46%)
HSVhsv(298, 80%, 77%)
CMYKcmyk(2%, 79.7%, 0%, 22.7%)
CIE-LABlab(48.12, 74.44, -48.09)
CIE-LCHlch(48.12, 88.62, 327.13°)
OKLaboklab(58.55% 0.2059 -0.1337)
OKLCHoklch(58.55% 0.245 327)
XYZxyz(32.8286, 16.8886, 54.3433)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C128C5 #2CC528
analogous
#7328C5 #C128C5 #C5287B
triadic
#C128C5 #C5C128 #28C5C1
tetradic
#C128C5 #C57328 #2CC528 #287BC5
square
#C128C5 #C57328 #2CC528 #287BC5
split-complementary
#C128C5 #7BC528 #28C573
monochromatic
#5D135F #8F1E92 #C128C5 #D84FDB #E382E6

Accessibility & contrast

On white

4.80
#C128C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#C128C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C128C5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C128C5#FFFFFF#000000##FFFFFF
##C128C51.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#5379C1
Tritanopia (blue-blind)
#C74578
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c128c5;
/* rgb */ color: rgb(193, 40, 197);
/* oklch */ color: oklch(58.5% 0.245 327.0);
Tailwind
colors: {
  custom: {
    50: '#d876d7',
    500: '#c128c5',
    950: '#000000',
  },
}
SCSS
$custom: #c128c5;
$custom-light: #d876d7;
$custom-dark: #000000;
JSON
{
  "hex": "#c128c5",
  "rgb": {
    "r": 193,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 298.471,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.58546,
    "c": 0.24549,
    "h": 327
  },
  "luminance": 0.16886
}

Semantic roles & 50–950 ramp

primary
#C128C5
secondary
#7DCE7A
accent
#E93F43
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #C128C5

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

Preview Lab → · Contrast checker → · Palette generator →

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