#C731B6#C731B6

#C731B6 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.2% C 0.230 H 333.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C731B6
RGBrgb(199, 49, 182)
HSLhsl(307, 60%, 49%)
HSVhsv(307, 75%, 78%)
CMYKcmyk(0%, 75.4%, 8.5%, 22%)
CIE-LABlab(49.15, 70.93, -37.65)
CIE-LCHlch(49.15, 80.30, 332.04°)
OKLaboklab(59.21% 0.205 -0.1034)
OKLCHoklch(59.21% 0.23 333.2)
XYZxyz(33.0952, 17.7190, 45.9240)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731B6 #31C742
analogous
#8D31C7 #C731B6 #C7316B
triadic
#C731B6 #B6C731 #31B6C7
tetradic
#C731B6 #C78D31 #31C742 #316BC7
square
#C731B6 #C78D31 #31C742 #316BC7
split-complementary
#C731B6 #6BC731 #31C78D
monochromatic
#65195C #962589 #C731B6 #D75ECA #E38FDA

Accessibility & contrast

On white

4.62
#C731B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#C731B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C731B6
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731B6#FFFFFF#000000##FFFFFF
##C731B61.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67BA
Deuteranopia (green-blind)
#657CB2
Tritanopia (blue-blind)
#D04171
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c731b6;
/* rgb */ color: rgb(199, 49, 182);
/* oklch */ color: oklch(59.2% 0.230 333.2);
Tailwind
colors: {
  custom: {
    50: '#dc79cc',
    500: '#c731b6',
    950: '#000000',
  },
}
SCSS
$custom: #c731b6;
$custom-light: #dc79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#c731b6",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 306.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59211,
    "c": 0.22959,
    "h": 333.2
  },
  "luminance": 0.17716
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C731B6

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

Preview Lab → · Contrast checker → · Palette generator →

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