#C731B3#C731B3

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

Color values

HEX#C731B3
RGBrgb(199, 49, 179)
HSLhsl(308, 60%, 49%)
HSVhsv(308, 75%, 78%)
CMYKcmyk(0%, 75.4%, 10.1%, 22%)
CIE-LABlab(49.00, 70.48, -36.13)
CIE-LCHlch(49.00, 79.21, 332.86°)
OKLaboklab(59.05% 0.2049 -0.099)
OKLCHoklch(59.05% 0.228 334.2)
XYZxyz(32.7885, 17.5963, 44.3086)
Luminance0.1759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731B3 #31C745
analogous
#9031C7 #C731B3 #C73168
triadic
#C731B3 #B3C731 #31B3C7
tetradic
#C731B3 #C79031 #31C745 #3168C7
square
#C731B3 #C79031 #31C745 #3168C7
split-complementary
#C731B3 #68C731 #31C790
monochromatic
#65195B #962587 #C731B3 #D75EC7 #E38FD8

Accessibility & contrast

On white

4.65
#C731B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#C731B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C731B3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731B3#FFFFFF#000000##FFFFFF
##C731B31.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E67B6
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#D03F70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c731b3;
/* rgb */ color: rgb(199, 49, 179);
/* oklch */ color: oklch(59.1% 0.228 334.2);
Tailwind
colors: {
  custom: {
    50: '#dc79ca',
    500: '#c731b3',
    950: '#000000',
  },
}
SCSS
$custom: #c731b3;
$custom-light: #dc79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#c731b3",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 308,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59054,
    "c": 0.22751,
    "h": 334.2
  },
  "luminance": 0.17593
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C731B3

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

Preview Lab → · Contrast checker → · Palette generator →

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