#D178FA#D178FA

#D178FA is a light, vivid purple. Relative luminance 0.339; OKLCH L 72.1% C 0.199 H 314.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#D178FA
RGBrgb(209, 120, 250)
HSLhsl(281, 93%, 73%)
HSVhsv(281, 52%, 98%)
CMYKcmyk(16.4%, 52%, 0%, 2%)
CIE-LABlab(64.88, 55.73, -51.21)
CIE-LCHlch(64.88, 75.68, 317.42°)
OKLaboklab(72.06% 0.1384 -0.1429)
OKLCHoklch(72.06% 0.199 314.1)
XYZxyz(50.2635, 33.8917, 94.3179)
Luminance0.3389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178FA #A1FA78
analogous
#9078FA #D178FA #FA78E2
triadic
#D178FA #FAD178 #78FAD1
tetradic
#D178FA #FA9078 #A1FA78 #78E2FA
square
#D178FA #FA9078 #A1FA78 #78E2FA
split-complementary
#D178FA #E2FA78 #78FA90
monochromatic
#A609EF #BD3DF8 #D178FA #E5B3FC #F5E1FE

Accessibility & contrast

On white

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

On black

7.78
#D178FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178FA
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178FA#FFFFFF#000000##000000
##D178FA1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5998FE
Deuteranopia (green-blind)
#75A0F7
Tritanopia (blue-blind)
#CE8DAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178fa;
/* rgb */ color: rgb(209, 120, 250);
/* oklch */ color: oklch(72.1% 0.199 314.1);
Tailwind
colors: {
  custom: {
    50: '#e2a2fc',
    500: '#d178fa',
    950: '#000000',
  },
}
SCSS
$custom: #d178fa;
$custom-light: #e2a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d178fa",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 281.077,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.72055,
    "c": 0.19891,
    "h": 314.1
  },
  "luminance": 0.3389
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D178FA

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

Preview Lab → · Contrast checker → · Palette generator →

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