#C731A7#C731A7

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

Color values

HEX#C731A7
RGBrgb(199, 49, 167)
HSLhsl(313, 60%, 49%)
HSVhsv(313, 75%, 78%)
CMYKcmyk(0%, 75.4%, 16.1%, 22%)
CIE-LABlab(48.43, 68.78, -29.97)
CIE-LCHlch(48.43, 75.03, 336.46°)
OKLaboklab(58.45% 0.2038 -0.0813)
OKLCHoklch(58.45% 0.219 338.2)
XYZxyz(31.6273, 17.1318, 38.1928)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731A7 #31C751
analogous
#9C31C7 #C731A7 #C7315C
triadic
#C731A7 #A7C731 #31A7C7
tetradic
#C731A7 #C79C31 #31C751 #315CC7
square
#C731A7 #C79C31 #31C751 #315CC7
split-complementary
#C731A7 #5CC731 #31C79C
monochromatic
#651955 #96257E #C731A7 #D75EBD #E38FD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C731A7#FFFFFF#000000##FFFFFF
##C731A71.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)
#3864AA
Deuteranopia (green-blind)
#6B7BA4
Tritanopia (blue-blind)
#D23969
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c731a7;
/* rgb */ color: rgb(199, 49, 167);
/* oklch */ color: oklch(58.5% 0.219 338.2);
Tailwind
colors: {
  custom: {
    50: '#dc79c1',
    500: '#c731a7',
    950: '#000000',
  },
}
SCSS
$custom: #c731a7;
$custom-light: #dc79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c731a7",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 312.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58451,
    "c": 0.21947,
    "h": 338.2
  },
  "luminance": 0.17129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C731A7

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

Preview Lab → · Contrast checker → · Palette generator →

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