#D178FB#D178FB

#D178FB is a light, vivid purple. Relative luminance 0.340; OKLCH L 72.1% C 0.200 H 313.8°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#D178FB
RGBrgb(209, 120, 251)
HSLhsl(281, 94%, 73%)
HSVhsv(281, 52%, 98%)
CMYKcmyk(16.7%, 52.2%, 0%, 1.6%)
CIE-LABlab(64.93, 55.94, -51.68)
CIE-LCHlch(64.93, 76.15, 317.26°)
OKLaboklab(72.11% 0.1385 -0.1443)
OKLCHoklch(72.11% 0.2 313.8)
XYZxyz(50.4207, 33.9546, 95.1459)
Luminance0.3395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178FB #A2FB78
analogous
#8F78FB #D178FB #FB78E4
triadic
#D178FB #FBD178 #78FBD1
tetradic
#D178FB #FB8F78 #A2FB78 #78E4FB
square
#D178FB #FB8F78 #A2FB78 #78E4FB
split-complementary
#D178FB #E4FB78 #78FB8F
monochromatic
#A607F1 #BD3DF9 #D178FB #E5B3FD #F5E1FE

Accessibility & contrast

On white

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

On black

7.79
#D178FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178FB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178FB#FFFFFF#000000##000000
##D178FB1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#74A0F8
Tritanopia (blue-blind)
#CD8DAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d178fb;
/* rgb */ color: rgb(209, 120, 251);
/* oklch */ color: oklch(72.1% 0.200 313.8);
Tailwind
colors: {
  custom: {
    50: '#e2a2fd',
    500: '#d178fb',
    950: '#000000',
  },
}
SCSS
$custom: #d178fb;
$custom-light: #e2a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d178fb",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 280.763,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72108,
    "c": 0.19996,
    "h": 313.8
  },
  "luminance": 0.33953
}

Semantic roles & 50–950 ramp

primary
#D178FB
secondary
#DFF6D5
accent
#E6004A
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D178FB

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

Preview Lab → · Contrast checker → · Palette generator →

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