#DF31E2#DF31E2

#DF31E2 is a light, highly saturated purple. Relative luminance 0.234; OKLCH L 65.2% C 0.272 H 327.4°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#DF31E2
RGBrgb(223, 49, 226)
HSLhsl(299, 75%, 54%)
HSVhsv(299, 78%, 89%)
CMYKcmyk(1.3%, 78.3%, 0%, 11.4%)
CIE-LABlab(55.46, 82.42, -52.69)
CIE-LCHlch(55.46, 97.82, 327.41°)
OKLaboklab(65.22% 0.2287 -0.1464)
OKLCHoklch(65.22% 0.272 327.4)
XYZxyz(45.2565, 23.3789, 74.0657)
Luminance0.2338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF31E2 #34E231
analogous
#8731E2 #DF31E2 #E2318D
triadic
#DF31E2 #E2DF31 #31E2DF
tetradic
#DF31E2 #E28731 #34E231 #318DE2
square
#DF31E2 #E28731 #34E231 #318DE2
split-complementary
#DF31E2 #8DE231 #31E287
monochromatic
#841386 #B91ABB #DF31E2 #E767EA #F09CF1

Accessibility & contrast

On white

3.70
#DF31E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#DF31E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF31E2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF31E2#FFFFFF#000000##000000
##DF31E21.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#638CDE
Tritanopia (blue-blind)
#E6518A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #df31e2;
/* rgb */ color: rgb(223, 49, 226);
/* oklch */ color: oklch(65.2% 0.272 327.4);
Tailwind
colors: {
  custom: {
    50: '#ee7eec',
    500: '#df31e2',
    950: '#000000',
  },
}
SCSS
$custom: #df31e2;
$custom-light: #ee7eec;
$custom-dark: #000000;
JSON
{
  "hex": "#df31e2",
  "rgb": {
    "r": 223,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 298.983,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.65218,
    "c": 0.27153,
    "h": 327.4
  },
  "luminance": 0.23376
}

Semantic roles & 50–950 ramp

primary
#DF31E2
secondary
#93DD92
accent
#F23639
background
#FFF8FE
surface
#FEF0FD
border
#D6CBD5
text
#170B16
muted
#857C84

Preview Lab

Preview with #DF31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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