#C731A8#C731A8

#C731A8 is a mid, highly saturated pink. Relative luminance 0.172; OKLCH L 58.5% C 0.220 H 337.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#C731A8
RGBrgb(199, 49, 168)
HSLhsl(312, 60%, 49%)
HSVhsv(312, 75%, 78%)
CMYKcmyk(0%, 75.4%, 15.6%, 22%)
CIE-LABlab(48.47, 68.92, -30.49)
CIE-LCHlch(48.47, 75.36, 336.14°)
OKLaboklab(58.5% 0.204 -0.0828)
OKLCHoklch(58.5% 0.22 337.9)
XYZxyz(31.7201, 17.1689, 38.6816)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731A8 #31C750
analogous
#9B31C7 #C731A8 #C7315D
triadic
#C731A8 #A8C731 #31A8C7
tetradic
#C731A8 #C79B31 #31C750 #315DC7
square
#C731A8 #C79B31 #31C750 #315DC7
split-complementary
#C731A8 #5DC731 #31C79B
monochromatic
#651955 #96257F #C731A8 #D75EBE #E38FD2

Accessibility & contrast

On white

4.74
#C731A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#C731A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C731A8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731A8#FFFFFF#000000##FFFFFF
##C731A81.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AB
Deuteranopia (green-blind)
#6B7BA5
Tritanopia (blue-blind)
#D2396A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c731a8;
/* rgb */ color: rgb(199, 49, 168);
/* oklch */ color: oklch(58.5% 0.220 337.9);
Tailwind
colors: {
  custom: {
    50: '#dc79c2',
    500: '#c731a8',
    950: '#000000',
  },
}
SCSS
$custom: #c731a8;
$custom-light: #dc79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#c731a8",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 312.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.585,
    "c": 0.22012,
    "h": 337.9
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#C731A8
secondary
#86CE95
accent
#E46544
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #C731A8

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

Preview Lab → · Contrast checker → · Palette generator →

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