#C731B4#C731B4

#C731B4 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.1% C 0.228 H 333.9°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#C731B4
RGBrgb(199, 49, 180)
HSLhsl(308, 60%, 49%)
HSVhsv(308, 75%, 78%)
CMYKcmyk(0%, 75.4%, 9.5%, 22%)
CIE-LABlab(49.05, 70.63, -36.64)
CIE-LCHlch(49.05, 79.57, 332.58°)
OKLaboklab(59.11% 0.2049 -0.1004)
OKLCHoklch(59.11% 0.228 333.9)
XYZxyz(32.8900, 17.6369, 44.8432)
Luminance0.1763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731B4 #31C744
analogous
#8F31C7 #C731B4 #C73169
triadic
#C731B4 #B4C731 #31B4C7
tetradic
#C731B4 #C78F31 #31C744 #3169C7
square
#C731B4 #C78F31 #31C744 #3169C7
split-complementary
#C731B4 #69C731 #31C78F
monochromatic
#65195B #962588 #C731B4 #D75EC8 #E38FD9

Accessibility & contrast

On white

4.64
#C731B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#C731B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C731B4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731B4#FFFFFF#000000##FFFFFF
##C731B41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B8
Deuteranopia (green-blind)
#667CB0
Tritanopia (blue-blind)
#D04070
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c731b4;
/* rgb */ color: rgb(199, 49, 180);
/* oklch */ color: oklch(59.1% 0.228 333.9);
Tailwind
colors: {
  custom: {
    50: '#dc79cb',
    500: '#c731b4',
    950: '#000000',
  },
}
SCSS
$custom: #c731b4;
$custom-light: #dc79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c731b4",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 307.6,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59106,
    "c": 0.22821,
    "h": 333.9
  },
  "luminance": 0.17634
}

Semantic roles & 50–950 ramp

primary
#C731B4
secondary
#86CE8F
accent
#E45844
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #C731B4

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

Preview Lab → · Contrast checker → · Palette generator →

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