#C731C8#C731C8

#C731C8 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.2% C 0.243 H 327.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#C731C8
RGBrgb(199, 49, 200)
HSLhsl(300, 61%, 49%)
HSVhsv(300, 76%, 78%)
CMYKcmyk(0.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(50.11, 73.68, -46.60)
CIE-LCHlch(50.11, 87.18, 327.69°)
OKLaboklab(60.2% 0.2052 -0.1293)
OKLCHoklch(60.2% 0.243 327.8)
XYZxyz(35.0764, 18.5114, 56.3580)
Luminance0.1851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731C8 #32C831
analogous
#7C31C8 #C731C8 #C8317E
triadic
#C731C8 #C8C731 #31C8C7
tetradic
#C731C8 #C87C31 #32C831 #317EC8
square
#C731C8 #C87C31 #32C831 #317EC8
split-complementary
#C731C8 #7EC831 #31C87C
monochromatic
#651966 #962597 #C731C8 #D75FD8 #E390E4

Accessibility & contrast

On white

4.47
#C731C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#C731C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C731C8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731C8#FFFFFF#000000##000000
##C731C81.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#036BCC
Deuteranopia (green-blind)
#5B7EC4
Tritanopia (blue-blind)
#CD4A7B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c731c8;
/* rgb */ color: rgb(199, 49, 200);
/* oklch */ color: oklch(60.2% 0.243 327.8);
Tailwind
colors: {
  custom: {
    50: '#dc7ad9',
    500: '#c731c8',
    950: '#000000',
  },
}
SCSS
$custom: #c731c8;
$custom-light: #dc7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#c731c8",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 299.603,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60204,
    "c": 0.24252,
    "h": 327.8
  },
  "luminance": 0.18509
}

Semantic roles & 50–950 ramp

primary
#C731C8
secondary
#87CE86
accent
#E44445
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A15
muted
#847C83

Preview Lab

Preview with #C731C8

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

Preview Lab → · Contrast checker → · Palette generator →

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