#C728B5#C728B5

#C728B5 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.6% C 0.237 H 333.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C728B5
RGBrgb(199, 40, 181)
HSLhsl(307, 67%, 47%)
HSVhsv(307, 80%, 78%)
CMYKcmyk(0%, 79.9%, 9%, 22%)
CIE-LABlab(48.26, 73.21, -38.48)
CIE-LCHlch(48.26, 82.71, 332.27°)
OKLaboklab(58.55% 0.2121 -0.1057)
OKLCHoklch(58.55% 0.237 333.5)
XYZxyz(32.6528, 16.9988, 45.2685)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C728B5 #28C73A
analogous
#8928C7 #C728B5 #C72866
triadic
#C728B5 #B5C728 #28B5C7
tetradic
#C728B5 #C78928 #28C73A #2866C7
square
#C728B5 #C78928 #28C73A #2866C7
split-complementary
#C728B5 #66C728 #28C789
monochromatic
#611458 #941E87 #C728B5 #DC50CC #E683DB

Accessibility & contrast

On white

4.77
#C728B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#C728B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C728B5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C728B5#FFFFFF#000000##FFFFFF
##C728B51.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2064B9
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#D03B6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c728b5;
/* rgb */ color: rgb(199, 40, 181);
/* oklch */ color: oklch(58.6% 0.237 333.5);
Tailwind
colors: {
  custom: {
    50: '#dc76cb',
    500: '#c728b5',
    950: '#000000',
  },
}
SCSS
$custom: #c728b5;
$custom-light: #dc76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c728b5",
  "rgb": {
    "r": 199,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 306.792,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58554,
    "c": 0.23697,
    "h": 333.5
  },
  "luminance": 0.16996
}

Semantic roles & 50–950 ramp

primary
#C728B5
secondary
#7CCF85
accent
#E9523E
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #C728B5

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

Preview Lab → · Contrast checker → · Palette generator →

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