#D178F7#D178F7

#D178F7 is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.9% C 0.196 H 314.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#D178F7
RGBrgb(209, 120, 247)
HSLhsl(282, 89%, 72%)
HSVhsv(282, 51%, 97%)
CMYKcmyk(15.4%, 51.4%, 0%, 3.1%)
CIE-LABlab(64.73, 55.12, -49.80)
CIE-LCHlch(64.73, 74.28, 317.90°)
OKLaboklab(71.9% 0.1381 -0.1388)
OKLCHoklch(71.9% 0.196 314.9)
XYZxyz(49.7968, 33.7051, 91.8602)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178F7 #9EF778
analogous
#9278F7 #D178F7 #F778DE
triadic
#D178F7 #F7D178 #78F7D1
tetradic
#D178F7 #F79278 #9EF778 #78DEF7
square
#D178F7 #F79278 #9EF778 #78DEF7
split-complementary
#D178F7 #DEF778 #78F792
monochromatic
#A60EE7 #BD3EF4 #D178F7 #E5B2FA #F5E2FD

Accessibility & contrast

On white

2.71
#D178F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#D178F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178F7
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178F7#FFFFFF#000000##000000
##D178F71.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FB
Deuteranopia (green-blind)
#779FF4
Tritanopia (blue-blind)
#CE8CAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178f7;
/* rgb */ color: rgb(209, 120, 247);
/* oklch */ color: oklch(71.9% 0.196 314.9);
Tailwind
colors: {
  custom: {
    50: '#e1a2fa',
    500: '#d178f7',
    950: '#000000',
  },
}
SCSS
$custom: #d178f7;
$custom-light: #e1a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d178f7",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 282.047,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71897,
    "c": 0.19579,
    "h": 314.9
  },
  "luminance": 0.33704
}

Semantic roles & 50–950 ramp

primary
#D178F7
secondary
#DFF5D5
accent
#E50045
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178F7

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

Preview Lab → · Contrast checker → · Palette generator →

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