#D938D7#D938D7

#D938D7 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 64.2% C 0.255 H 328.6°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#D938D7
RGBrgb(217, 56, 215)
HSLhsl(301, 68%, 54%)
HSVhsv(301, 74%, 85%)
CMYKcmyk(0%, 74.2%, 0.9%, 14.9%)
CIE-LABlab(54.54, 77.66, -47.97)
CIE-LCHlch(54.54, 91.28, 328.30°)
OKLaboklab(64.19% 0.2176 -0.1328)
OKLCHoklch(64.19% 0.255 328.6)
XYZxyz(42.2948, 22.4895, 66.3901)
Luminance0.2249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D938D7 #38D93A
analogous
#8A38D9 #D938D7 #D93886
triadic
#D938D7 #D7D938 #38D7D9
tetradic
#D938D7 #D98A38 #38D93A #3886D9
square
#D938D7 #D98A38 #38D93A #3886D9
split-complementary
#D938D7 #86D938 #38D98A
monochromatic
#7E187D #B222B0 #D938D7 #E36BE1 #ED9FEC

Accessibility & contrast

On white

3.82
#D938D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#D938D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D938D7
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D938D7#FFFFFF#000000##000000
##D938D71.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1675DB
Deuteranopia (green-blind)
#668AD3
Tritanopia (blue-blind)
#E05186
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d938d7;
/* rgb */ color: rgb(217, 56, 215);
/* oklch */ color: oklch(64.2% 0.255 328.6);
Tailwind
colors: {
  custom: {
    50: '#e97fe4',
    500: '#d938d7',
    950: '#000000',
  },
}
SCSS
$custom: #d938d7;
$custom-light: #e97fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#d938d7",
  "rgb": {
    "r": 217,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 300.745,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.64187,
    "c": 0.25498,
    "h": 328.6
  },
  "luminance": 0.22486
}

Semantic roles & 50–950 ramp

primary
#D938D7
secondary
#94D995
accent
#EB3F3D
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170B15
muted
#857C84

Preview Lab

Preview with #D938D7

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

Preview Lab → · Contrast checker → · Palette generator →

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