#C728B2#C728B2

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

Color values

HEX#C728B2
RGBrgb(199, 40, 178)
HSLhsl(308, 67%, 47%)
HSVhsv(308, 80%, 78%)
CMYKcmyk(0%, 79.9%, 10.6%, 22%)
CIE-LABlab(48.10, 72.78, -36.96)
CIE-LCHlch(48.10, 81.63, 333.08°)
OKLaboklab(58.39% 0.212 -0.1013)
OKLCHoklch(58.39% 0.235 334.5)
XYZxyz(32.3482, 16.8770, 43.6648)
Luminance0.1687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C728B2 #28C73D
analogous
#8D28C7 #C728B2 #C72862
triadic
#C728B2 #B2C728 #28B2C7
tetradic
#C728B2 #C78D28 #28C73D #2862C7
square
#C728B2 #C78D28 #28C73D #2862C7
split-complementary
#C728B2 #62C728 #28C78D
monochromatic
#611457 #941E84 #C728B2 #DC50C9 #E683D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C728B2#FFFFFF#000000##FFFFFF
##C728B21.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B6
Deuteranopia (green-blind)
#647AAE
Tritanopia (blue-blind)
#D1396D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c728b2;
/* rgb */ color: rgb(199, 40, 178);
/* oklch */ color: oklch(58.4% 0.235 334.5);
Tailwind
colors: {
  custom: {
    50: '#dc76c9',
    500: '#c728b2',
    950: '#000000',
  },
}
SCSS
$custom: #c728b2;
$custom-light: #dc76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c728b2",
  "rgb": {
    "r": 199,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 307.925,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.58394,
    "c": 0.23496,
    "h": 334.5
  },
  "luminance": 0.16874
}

Semantic roles & 50–950 ramp

primary
#C728B2
secondary
#7CCF87
accent
#E9553E
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #C728B2

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

Preview Lab → · Contrast checker → · Palette generator →

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