#D931E2#D931E2

#D931E2 is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 64.3% C 0.269 H 325.8°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#D931E2
RGBrgb(217, 49, 226)
HSLhsl(297, 75%, 54%)
HSVhsv(297, 78%, 89%)
CMYKcmyk(4%, 78.3%, 0%, 11.4%)
CIE-LABlab(54.49, 81.29, -54.29)
CIE-LCHlch(54.49, 97.75, 326.27°)
OKLaboklab(64.35% 0.2226 -0.1512)
OKLCHoklch(64.35% 0.269 325.8)
XYZxyz(43.4401, 22.4423, 73.9806)
Luminance0.2244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D931E2 #3AE231
analogous
#8131E2 #D931E2 #E23193
triadic
#D931E2 #E2D931 #31E2D9
tetradic
#D931E2 #E28131 #3AE231 #3193E2
square
#D931E2 #E28131 #3AE231 #3193E2
split-complementary
#D931E2 #93E231 #31E281
monochromatic
#801386 #B31ABB #D931E2 #E367EA #ED9CF1

Accessibility & contrast

On white

3.83
#D931E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#D931E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D931E2
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D931E2#FFFFFF#000000##000000
##D931E21.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#5C89DE
Tritanopia (blue-blind)
#DE538A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d931e2;
/* rgb */ color: rgb(217, 49, 226);
/* oklch */ color: oklch(64.3% 0.269 325.8);
Tailwind
colors: {
  custom: {
    50: '#e97dec',
    500: '#d931e2',
    950: '#000000',
  },
}
SCSS
$custom: #d931e2;
$custom-light: #e97dec;
$custom-dark: #000000;
JSON
{
  "hex": "#d931e2",
  "rgb": {
    "r": 217,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 296.949,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.64348,
    "c": 0.26908,
    "h": 325.8
  },
  "luminance": 0.22439
}

Semantic roles & 50–950 ramp

primary
#D931E2
secondary
#95DD92
accent
#F2363F
background
#FEF8FE
surface
#FDEFFD
border
#D5CAD5
text
#170B16
muted
#857C84

Preview Lab

Preview with #D931E2

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

Preview Lab → · Contrast checker → · Palette generator →

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