#D838D9#D838D9

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

Color values

HEX#D838D9
RGBrgb(216, 56, 217)
HSLhsl(300, 68%, 54%)
HSVhsv(300, 74%, 85%)
CMYKcmyk(0.5%, 74.2%, 0%, 14.9%)
CIE-LABlab(54.49, 77.77, -49.20)
CIE-LCHlch(54.49, 92.03, 327.68°)
OKLaboklab(64.15% 0.2166 -0.1364)
OKLCHoklch(64.15% 0.256 327.8)
XYZxyz(42.2569, 22.4401, 67.7379)
Luminance0.2244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D838D9 #39D938
analogous
#8738D9 #D838D9 #D93889
triadic
#D838D9 #D9D838 #38D9D8
tetradic
#D838D9 #D98738 #39D938 #3889D9
square
#D838D9 #D98738 #39D938 #3889D9
split-complementary
#D838D9 #89D938 #38D987
monochromatic
#7E187E #B122B2 #D838D9 #E26BE3 #EC9FED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D838D9#FFFFFF#000000##000000
##D838D91.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)
#0D75DD
Deuteranopia (green-blind)
#6489D5
Tritanopia (blue-blind)
#DF5287
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d838d9;
/* rgb */ color: rgb(216, 56, 217);
/* oklch */ color: oklch(64.2% 0.256 327.8);
Tailwind
colors: {
  custom: {
    50: '#e87fe5',
    500: '#d838d9',
    950: '#000000',
  },
}
SCSS
$custom: #d838d9;
$custom-light: #e87fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#d838d9",
  "rgb": {
    "r": 216,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 299.627,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.64154,
    "c": 0.25599,
    "h": 327.8
  },
  "luminance": 0.22437
}

Semantic roles & 50–950 ramp

primary
#D838D9
secondary
#94D994
accent
#EB3D3E
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170B16
muted
#857C84

Preview Lab

Preview with #D838D9

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

Preview Lab → · Contrast checker → · Palette generator →

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