#C731B7#C731B7

#C731B7 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.3% C 0.230 H 332.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#C731B7
RGBrgb(199, 49, 183)
HSLhsl(306, 60%, 49%)
HSVhsv(306, 75%, 78%)
CMYKcmyk(0%, 75.4%, 8%, 22%)
CIE-LABlab(49.20, 71.07, -38.16)
CIE-LCHlch(49.20, 80.67, 331.77°)
OKLaboklab(59.26% 0.2051 -0.1048)
OKLCHoklch(59.26% 0.23 332.9)
XYZxyz(33.1989, 17.7605, 46.4702)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731B7 #31C741
analogous
#8C31C7 #C731B7 #C7316C
triadic
#C731B7 #B7C731 #31B7C7
tetradic
#C731B7 #C78C31 #31C741 #316CC7
square
#C731B7 #C78C31 #31C741 #316CC7
split-complementary
#C731B7 #6CC731 #31C78C
monochromatic
#65195D #96258A #C731B7 #D75ECA #E38FDA

Accessibility & contrast

On white

4.61
#C731B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#C731B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C731B7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731B7#FFFFFF#000000##FFFFFF
##C731B71.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2967BB
Deuteranopia (green-blind)
#647CB3
Tritanopia (blue-blind)
#D04272
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c731b7;
/* rgb */ color: rgb(199, 49, 183);
/* oklch */ color: oklch(59.3% 0.230 332.9);
Tailwind
colors: {
  custom: {
    50: '#dc79cd',
    500: '#c731b7',
    950: '#000000',
  },
}
SCSS
$custom: #c731b7;
$custom-light: #dc79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c731b7",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 306.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59264,
    "c": 0.2303,
    "h": 332.9
  },
  "luminance": 0.17758
}

Semantic roles & 50–950 ramp

primary
#C731B7
secondary
#86CE8E
accent
#E45544
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160A13
muted
#847C82

Preview Lab

Preview with #C731B7

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

Preview Lab → · Contrast checker → · Palette generator →

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