#DD31E2#DD31E2

#DD31E2 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.9% C 0.271 H 326.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#DD31E2
RGBrgb(221, 49, 226)
HSLhsl(298, 75%, 54%)
HSVhsv(298, 78%, 89%)
CMYKcmyk(2.2%, 78.3%, 0%, 11.4%)
CIE-LABlab(55.14, 82.04, -53.22)
CIE-LCHlch(55.14, 97.79, 327.03°)
OKLaboklab(64.93% 0.2267 -0.148)
OKLCHoklch(64.93% 0.271 326.9)
XYZxyz(44.6438, 23.0630, 74.0370)
Luminance0.2306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DD31E2 #36E231
analogous
#8531E2 #DD31E2 #E2318F
triadic
#DD31E2 #E2DD31 #31E2DD
tetradic
#DD31E2 #E28531 #36E231 #318FE2
square
#DD31E2 #E28531 #36E231 #318FE2
split-complementary
#DD31E2 #8FE231 #31E285
monochromatic
#831386 #B71ABB #DD31E2 #E667EA #EF9CF1

Accessibility & contrast

On white

3.74
#DD31E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#DD31E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DD31E2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DD31E2#FFFFFF#000000##000000
##DD31E21.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#618BDE
Tritanopia (blue-blind)
#E3528A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #dd31e2;
/* rgb */ color: rgb(221, 49, 226);
/* oklch */ color: oklch(64.9% 0.271 326.9);
Tailwind
colors: {
  custom: {
    50: '#ec7eec',
    500: '#dd31e2',
    950: '#000000',
  },
}
SCSS
$custom: #dd31e2;
$custom-light: #ec7eec;
$custom-dark: #000000;
JSON
{
  "hex": "#dd31e2",
  "rgb": {
    "r": 221,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 298.305,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.64927,
    "c": 0.2707,
    "h": 326.9
  },
  "luminance": 0.2306
}

Semantic roles & 50–950 ramp

primary
#DD31E2
secondary
#94DD92
accent
#F2363B
background
#FFF8FE
surface
#FEEFFD
border
#D6CAD5
text
#170B16
muted
#857C84

Preview Lab

Preview with #DD31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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