#D331E2#D331E2

#D331E2 is a light, highly saturated purple. Relative luminance 0.215; OKLCH L 63.5% C 0.267 H 324.2°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#D331E2
RGBrgb(211, 49, 226)
HSLhsl(295, 75%, 54%)
HSVhsv(295, 78%, 89%)
CMYKcmyk(6.6%, 78.3%, 0%, 11.4%)
CIE-LABlab(53.53, 80.18, -55.87)
CIE-LCHlch(53.53, 97.72, 325.13°)
OKLaboklab(63.49% 0.2163 -0.156)
OKLCHoklch(63.49% 0.267 324.2)
XYZxyz(41.6886, 21.5392, 73.8985)
Luminance0.2154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D331E2 #40E231
analogous
#7B31E2 #D331E2 #E23199
triadic
#D331E2 #E2D331 #31E2D3
tetradic
#D331E2 #E27B31 #40E231 #3199E2
square
#D331E2 #E27B31 #40E231 #3199E2
split-complementary
#D331E2 #99E231 #31E27B
monochromatic
#7C1386 #AE1ABB #D331E2 #DE67EA #EA9CF1

Accessibility & contrast

On white

3.96
#D331E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#D331E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D331E2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D331E2#FFFFFF#000000##000000
##D331E21.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#5686DE
Tritanopia (blue-blind)
#D7558A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d331e2;
/* rgb */ color: rgb(211, 49, 226);
/* oklch */ color: oklch(63.5% 0.267 324.2);
Tailwind
colors: {
  custom: {
    50: '#e57dec',
    500: '#d331e2',
    950: '#000000',
  },
}
SCSS
$custom: #d331e2;
$custom-light: #e57dec;
$custom-dark: #000000;
JSON
{
  "hex": "#d331e2",
  "rgb": {
    "r": 211,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 294.915,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63485,
    "c": 0.26669,
    "h": 324.2
  },
  "luminance": 0.21536
}

Semantic roles & 50–950 ramp

primary
#D331E2
secondary
#98DD92
accent
#F23646
background
#FEF8FE
surface
#FDEFFD
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #D331E2

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

Preview Lab → · Contrast checker → · Palette generator →

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