#D178F9#D178F9

#D178F9 is a light, vivid purple. Relative luminance 0.338; OKLCH L 72.0% C 0.198 H 314.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#D178F9
RGBrgb(209, 120, 249)
HSLhsl(281, 91%, 72%)
HSVhsv(281, 52%, 98%)
CMYKcmyk(16.1%, 51.8%, 0%, 2.4%)
CIE-LABlab(64.83, 55.52, -50.74)
CIE-LCHlch(64.83, 75.22, 317.58°)
OKLaboklab(72% 0.1383 -0.1415)
OKLCHoklch(72% 0.198 314.3)
XYZxyz(50.1071, 33.8292, 93.4943)
Luminance0.3383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178F9 #A0F978
analogous
#9078F9 #D178F9 #F978E1
triadic
#D178F9 #F9D178 #78F9D1
tetradic
#D178F9 #F99078 #A0F978 #78E1F9
square
#D178F9 #F99078 #A0F978 #78E1F9
split-complementary
#D178F9 #E1F978 #78F990
monochromatic
#A60AEC #BD3DF6 #D178F9 #E5B3FC #F5E2FE

Accessibility & contrast

On white

2.70
#D178F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#D178F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178F9
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178F9#FFFFFF#000000##000000
##D178F91.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5998FD
Deuteranopia (green-blind)
#76A0F6
Tritanopia (blue-blind)
#CE8DAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178f9;
/* rgb */ color: rgb(209, 120, 249);
/* oklch */ color: oklch(72.0% 0.198 314.3);
Tailwind
colors: {
  custom: {
    50: '#e2a2fc',
    500: '#d178f9',
    950: '#000000',
  },
}
SCSS
$custom: #d178f9;
$custom-light: #e2a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d178f9",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 281.395,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72002,
    "c": 0.19787,
    "h": 314.3
  },
  "luminance": 0.33828
}

Semantic roles & 50–950 ramp

primary
#D178F9
secondary
#DFF6D5
accent
#E60047
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178F9

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

Preview Lab → · Contrast checker → · Palette generator →

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