#D938D6#D938D6

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

Color values

HEX#D938D6
RGBrgb(217, 56, 214)
HSLhsl(301, 68%, 54%)
HSVhsv(301, 74%, 85%)
CMYKcmyk(0%, 74.2%, 1.4%, 14.9%)
CIE-LABlab(54.49, 77.51, -47.48)
CIE-LCHlch(54.49, 90.90, 328.51°)
OKLaboklab(64.13% 0.2177 -0.1314)
OKLCHoklch(64.13% 0.254 328.9)
XYZxyz(42.1667, 22.4383, 65.7154)
Luminance0.2243 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D938D6 #38D93B
analogous
#8B38D9 #D938D6 #D93885
triadic
#D938D6 #D6D938 #38D6D9
tetradic
#D938D6 #D98B38 #38D93B #3885D9
square
#D938D6 #D98B38 #38D93B #3885D9
split-complementary
#D938D6 #85D938 #38D98B
monochromatic
#7E187D #B222AF #D938D6 #E36BE1 #ED9FEB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D938D6#FFFFFF#000000##000000
##D938D61.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)
#1975DA
Deuteranopia (green-blind)
#678AD2
Tritanopia (blue-blind)
#E05185
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d938d6;
/* rgb */ color: rgb(217, 56, 214);
/* oklch */ color: oklch(64.1% 0.254 328.9);
Tailwind
colors: {
  custom: {
    50: '#e97fe3',
    500: '#d938d6',
    950: '#000000',
  },
}
SCSS
$custom: #d938d6;
$custom-light: #e97fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#d938d6",
  "rgb": {
    "r": 217,
    "g": 56,
    "b": 214
  },
  "hsl": {
    "h": 301.118,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.64131,
    "c": 0.25426,
    "h": 328.9
  },
  "luminance": 0.22435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D938D6

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

Preview Lab → · Contrast checker → · Palette generator →

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