#C731B2#C731B2

#C731B2 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.0% C 0.227 H 334.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C731B2
RGBrgb(199, 49, 178)
HSLhsl(308, 60%, 49%)
HSVhsv(308, 75%, 78%)
CMYKcmyk(0%, 75.4%, 10.6%, 22%)
CIE-LABlab(48.95, 70.34, -35.63)
CIE-LCHlch(48.95, 78.85, 333.14°)
OKLaboklab(59% 0.2048 -0.0975)
OKLCHoklch(59% 0.227 334.5)
XYZxyz(32.6877, 17.5560, 43.7779)
Luminance0.1755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731B2 #31C746
analogous
#9131C7 #C731B2 #C73167
triadic
#C731B2 #B2C731 #31B2C7
tetradic
#C731B2 #C79131 #31C746 #3167C7
square
#C731B2 #C79131 #31C746 #3167C7
split-complementary
#C731B2 #67C731 #31C791
monochromatic
#65195A #962586 #C731B2 #D75EC6 #E38FD8

Accessibility & contrast

On white

4.66
#C731B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#C731B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C731B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731B2#FFFFFF#000000##FFFFFF
##C731B21.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#677CAE
Tritanopia (blue-blind)
#D13F6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c731b2;
/* rgb */ color: rgb(199, 49, 178);
/* oklch */ color: oklch(59.0% 0.227 334.5);
Tailwind
colors: {
  custom: {
    50: '#dc79c9',
    500: '#c731b2',
    950: '#000000',
  },
}
SCSS
$custom: #c731b2;
$custom-light: #dc79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c731b2",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 308.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59002,
    "c": 0.22682,
    "h": 334.5
  },
  "luminance": 0.17553
}

Semantic roles & 50–950 ramp

primary
#C731B2
secondary
#86CE90
accent
#E45B44
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #C731B2

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

Preview Lab → · Contrast checker → · Palette generator →

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