#D178FC#D178FC

#D178FC is a light, highly saturated purple. Relative luminance 0.340; OKLCH L 72.2% C 0.201 H 313.6°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#D178FC
RGBrgb(209, 120, 252)
HSLhsl(280, 96%, 73%)
HSVhsv(280, 52%, 99%)
CMYKcmyk(17.1%, 52.4%, 0%, 1.2%)
CIE-LABlab(64.98, 56.14, -52.15)
CIE-LCHlch(64.98, 76.62, 317.11°)
OKLaboklab(72.16% 0.1385 -0.1456)
OKLCHoklch(72.16% 0.201 313.6)
XYZxyz(50.5787, 34.0178, 95.9783)
Luminance0.3402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178FC #A3FC78
analogous
#8F78FC #D178FC #FC78E5
triadic
#D178FC #FCD178 #78FCD1
tetradic
#D178FC #FC8F78 #A3FC78 #78E5FC
square
#D178FC #FC8F78 #A3FC78 #78E5FC
split-complementary
#D178FC #E5FC78 #78FC8F
monochromatic
#A605F4 #BD3CFB #D178FC #E5B4FD #F5E1FE

Accessibility & contrast

On white

2.69
#D178FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#D178FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178FC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178FC#FFFFFF#000000##000000
##D178FC1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5799FF
Deuteranopia (green-blind)
#74A0F9
Tritanopia (blue-blind)
#CD8EAF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d178fc;
/* rgb */ color: rgb(209, 120, 252);
/* oklch */ color: oklch(72.2% 0.201 313.6);
Tailwind
colors: {
  custom: {
    50: '#e2a2fe',
    500: '#d178fc',
    950: '#000000',
  },
}
SCSS
$custom: #d178fc;
$custom-light: #e2a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d178fc",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 280.455,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72161,
    "c": 0.20101,
    "h": 313.6
  },
  "luminance": 0.34017
}

Semantic roles & 50–950 ramp

primary
#D178FC
secondary
#E0F7D4
accent
#E6004B
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D178FC

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

Preview Lab → · Contrast checker → · Palette generator →

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