#C731B5#C731B5

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

Color values

HEX#C731B5
RGBrgb(199, 49, 181)
HSLhsl(307, 60%, 49%)
HSVhsv(307, 75%, 78%)
CMYKcmyk(0%, 75.4%, 9%, 22%)
CIE-LABlab(49.10, 70.78, -37.15)
CIE-LCHlch(49.10, 79.93, 332.31°)
OKLaboklab(59.16% 0.205 -0.1019)
OKLCHoklch(59.16% 0.229 333.6)
XYZxyz(32.9923, 17.6778, 45.3817)
Luminance0.1767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731B5 #31C743
analogous
#8E31C7 #C731B5 #C7316A
triadic
#C731B5 #B5C731 #31B5C7
tetradic
#C731B5 #C78E31 #31C743 #316AC7
square
#C731B5 #C78E31 #31C743 #316AC7
split-complementary
#C731B5 #6AC731 #31C78E
monochromatic
#65195C #962588 #C731B5 #D75EC9 #E38FD9

Accessibility & contrast

On white

4.63
#C731B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C731B5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731B5#FFFFFF#000000##FFFFFF
##C731B51.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B9
Deuteranopia (green-blind)
#657CB1
Tritanopia (blue-blind)
#D04071
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c731b5;
/* rgb */ color: rgb(199, 49, 181);
/* oklch */ color: oklch(59.2% 0.229 333.6);
Tailwind
colors: {
  custom: {
    50: '#dc79cb',
    500: '#c731b5',
    950: '#000000',
  },
}
SCSS
$custom: #c731b5;
$custom-light: #dc79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c731b5",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 307.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59158,
    "c": 0.2289,
    "h": 333.6
  },
  "luminance": 0.17675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C731B5

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

Preview Lab → · Contrast checker → · Palette generator →

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