#D731E2#D731E2

#D731E2 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 64.1% C 0.268 H 325.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#D731E2
RGBrgb(215, 49, 226)
HSLhsl(296, 75%, 54%)
HSVhsv(296, 78%, 89%)
CMYKcmyk(4.9%, 78.3%, 0%, 11.4%)
CIE-LABlab(54.17, 80.92, -54.82)
CIE-LCHlch(54.17, 97.74, 325.89°)
OKLaboklab(64.06% 0.2205 -0.1528)
OKLCHoklch(64.06% 0.268 325.3)
XYZxyz(42.8491, 22.1376, 73.9529)
Luminance0.2213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D731E2 #3CE231
analogous
#7F31E2 #D731E2 #E23195
triadic
#D731E2 #E2D731 #31E2D7
tetradic
#D731E2 #E27F31 #3CE231 #3195E2
square
#D731E2 #E27F31 #3CE231 #3195E2
split-complementary
#D731E2 #95E231 #31E27F
monochromatic
#7F1386 #B11ABB #D731E2 #E167EA #EC9CF1

Accessibility & contrast

On white

3.87
#D731E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#D731E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D731E2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D731E2#FFFFFF#000000##000000
##D731E21.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#5A88DE
Tritanopia (blue-blind)
#DC538A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d731e2;
/* rgb */ color: rgb(215, 49, 226);
/* oklch */ color: oklch(64.1% 0.268 325.3);
Tailwind
colors: {
  custom: {
    50: '#e87dec',
    500: '#d731e2',
    950: '#000000',
  },
}
SCSS
$custom: #d731e2;
$custom-light: #e87dec;
$custom-dark: #000000;
JSON
{
  "hex": "#d731e2",
  "rgb": {
    "r": 215,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 296.271,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.6406,
    "c": 0.26827,
    "h": 325.3
  },
  "luminance": 0.22135
}

Semantic roles & 50–950 ramp

primary
#D731E2
secondary
#96DD92
accent
#F23642
background
#FEF8FE
surface
#FDEFFD
border
#D5CAD5
text
#170B16
muted
#857C84

Preview Lab

Preview with #D731E2

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

Preview Lab → · Contrast checker → · Palette generator →

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