#D338D9#D338D9

#D338D9 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.4% C 0.254 H 326.4°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#D338D9
RGBrgb(211, 56, 217)
HSLhsl(298, 68%, 54%)
HSVhsv(298, 74%, 85%)
CMYKcmyk(2.8%, 74.2%, 0%, 14.9%)
CIE-LABlab(53.70, 76.77, -50.51)
CIE-LCHlch(53.70, 91.89, 326.66°)
OKLaboklab(63.43% 0.2114 -0.1404)
OKLCHoklch(63.43% 0.254 326.4)
XYZxyz(40.8018, 21.6898, 67.6697)
Luminance0.2169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338D9 #3ED938
analogous
#8238D9 #D338D9 #D9388E
triadic
#D338D9 #D9D338 #38D9D3
tetradic
#D338D9 #D98238 #3ED938 #388ED9
square
#D338D9 #D98238 #3ED938 #388ED9
split-complementary
#D338D9 #8ED938 #38D982
monochromatic
#7B187E #AC22B2 #D338D9 #DE6BE3 #EA9FED

Accessibility & contrast

On white

3.93
#D338D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D338D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338D9
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338D9#FFFFFF#000000##000000
##D338D91.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#5F87D5
Tritanopia (blue-blind)
#D95487
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d338d9;
/* rgb */ color: rgb(211, 56, 217);
/* oklch */ color: oklch(63.4% 0.254 326.4);
Tailwind
colors: {
  custom: {
    50: '#e57fe5',
    500: '#d338d9',
    950: '#000000',
  },
}
SCSS
$custom: #d338d9;
$custom-light: #e57fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#d338d9",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 297.764,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.63434,
    "c": 0.25379,
    "h": 326.4
  },
  "luminance": 0.21687
}

Semantic roles & 50–950 ramp

primary
#D338D9
secondary
#96D994
accent
#EB3D43
background
#FEF8FE
surface
#FDEFFC
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #D338D9

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

Preview Lab → · Contrast checker → · Palette generator →

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