#D178F4#D178F4

#D178F4 is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.7% C 0.193 H 315.7°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#D178F4
RGBrgb(209, 120, 244)
HSLhsl(283, 85%, 71%)
HSVhsv(283, 51%, 96%)
CMYKcmyk(14.3%, 50.8%, 0%, 4.3%)
CIE-LABlab(64.58, 54.51, -48.38)
CIE-LCHlch(64.58, 72.88, 318.41°)
OKLaboklab(71.74% 0.1378 -0.1347)
OKLCHoklch(71.74% 0.193 315.7)
XYZxyz(49.3376, 33.5214, 89.4417)
Luminance0.3352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178F4 #9BF478
analogous
#9378F4 #D178F4 #F478D9
triadic
#D178F4 #F4D178 #78F4D1
tetradic
#D178F4 #F49378 #9BF478 #78D9F4
square
#D178F4 #F49378 #9BF478 #78D9F4
split-complementary
#D178F4 #D9F478 #78F493
monochromatic
#A512DF #BE3FEF #D178F4 #E4B1F9 #F5E3FD

Accessibility & contrast

On white

2.73
#D178F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#D178F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178F4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178F4#FFFFFF#000000##000000
##D178F41.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D97F8
Deuteranopia (green-blind)
#799FF1
Tritanopia (blue-blind)
#CF8BAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178f4;
/* rgb */ color: rgb(209, 120, 244);
/* oklch */ color: oklch(71.7% 0.193 315.7);
Tailwind
colors: {
  custom: {
    50: '#e1a2f8',
    500: '#d178f4',
    950: '#000000',
  },
}
SCSS
$custom: #d178f4;
$custom-light: #e1a2f8;
$custom-dark: #000000;
JSON
{
  "hex": "#d178f4",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 244
  },
  "hsl": {
    "h": 283.065,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.7174,
    "c": 0.19269,
    "h": 315.7
  },
  "luminance": 0.3352
}

Semantic roles & 50–950 ramp

primary
#D178F4
secondary
#DDF4D4
accent
#E10443
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178F4

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

Preview Lab → · Contrast checker → · Palette generator →

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