#C731E2#C731E2

#C731E2 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.8% C 0.262 H 320.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C731E2
RGBrgb(199, 49, 226)
HSLhsl(291, 75%, 54%)
HSVhsv(291, 78%, 89%)
CMYKcmyk(11.9%, 78.3%, 0%, 11.4%)
CIE-LABlab(51.65, 77.98, -59.01)
CIE-LCHlch(51.65, 97.79, 322.89°)
OKLaboklab(61.79% 0.2033 -0.1655)
OKLCHoklch(61.79% 0.262 320.8)
XYZxyz(38.3774, 19.8318, 73.7432)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C731E2 #4CE231
analogous
#6F31E2 #C731E2 #E231A5
triadic
#C731E2 #E2C731 #31E2C7
tetradic
#C731E2 #E26F31 #4CE231 #31A5E2
square
#C731E2 #E26F31 #4CE231 #31A5E2
split-complementary
#C731E2 #A5E231 #31E26F
monochromatic
#741386 #A31ABB #C731E2 #D667EA #E49CF1

Accessibility & contrast

On white

4.23
#C731E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C731E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C731E2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C731E2#FFFFFF#000000##000000
##C731E21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#4780DE
Tritanopia (blue-blind)
#C8578A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c731e2;
/* rgb */ color: rgb(199, 49, 226);
/* oklch */ color: oklch(61.8% 0.262 320.8);
Tailwind
colors: {
  custom: {
    50: '#dd7bec',
    500: '#c731e2',
    950: '#000000',
  },
}
SCSS
$custom: #c731e2;
$custom-light: #dd7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#c731e2",
  "rgb": {
    "r": 199,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 290.847,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61785,
    "c": 0.26212,
    "h": 320.8
  },
  "luminance": 0.1983
}

Semantic roles & 50–950 ramp

primary
#C731E2
secondary
#9DDD92
accent
#F23653
background
#FEF8FE
surface
#FCEFFD
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #C731E2

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

Preview Lab → · Contrast checker → · Palette generator →

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