#D178F8#D178F8

#D178F8 is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.9% C 0.197 H 314.6°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#D178F8
RGBrgb(209, 120, 248)
HSLhsl(282, 90%, 72%)
HSVhsv(282, 52%, 97%)
CMYKcmyk(15.7%, 51.6%, 0%, 2.7%)
CIE-LABlab(64.78, 55.32, -50.27)
CIE-LCHlch(64.78, 74.75, 317.74°)
OKLaboklab(71.95% 0.1382 -0.1402)
OKLCHoklch(71.95% 0.197 314.6)
XYZxyz(49.9515, 33.7670, 92.6751)
Luminance0.3377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178F8 #9FF878
analogous
#9178F8 #D178F8 #F878DF
triadic
#D178F8 #F8D178 #78F8D1
tetradic
#D178F8 #F89178 #9FF878 #78DFF8
square
#D178F8 #F89178 #9FF878 #78DFF8
split-complementary
#D178F8 #DFF878 #78F891
monochromatic
#A60CE9 #BD3EF5 #D178F8 #E5B2FB #F5E2FD

Accessibility & contrast

On white

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

On black

7.75
#D178F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178F8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178F8#FFFFFF#000000##000000
##D178F81.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FC
Deuteranopia (green-blind)
#76A0F5
Tritanopia (blue-blind)
#CE8CAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178f8;
/* rgb */ color: rgb(209, 120, 248);
/* oklch */ color: oklch(71.9% 0.197 314.6);
Tailwind
colors: {
  custom: {
    50: '#e2a2fb',
    500: '#d178f8',
    950: '#000000',
  },
}
SCSS
$custom: #d178f8;
$custom-light: #e2a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d178f8",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 281.719,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71949,
    "c": 0.19683,
    "h": 314.6
  },
  "luminance": 0.33766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D178F8

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

Preview Lab → · Contrast checker → · Palette generator →

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