#D178FE#D178FE

#D178FE is a light, highly saturated violet. Relative luminance 0.341; OKLCH L 72.3% C 0.203 H 313.1°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#D178FE
RGBrgb(209, 120, 254)
HSLhsl(280, 99%, 73%)
HSVhsv(280, 53%, 100%)
CMYKcmyk(17.7%, 52.8%, 0%, 0.4%)
CIE-LABlab(65.08, 56.55, -53.09)
CIE-LCHlch(65.08, 77.57, 316.81°)
OKLaboklab(72.27% 0.1387 -0.1484)
OKLCHoklch(72.27% 0.203 313.1)
XYZxyz(50.8973, 34.1453, 97.6562)
Luminance0.3414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178FE #A5FE78
analogous
#8E78FE #D178FE #FE78E8
triadic
#D178FE #FED178 #78FED1
tetradic
#D178FE #FE8E78 #A5FE78 #78E8FE
square
#D178FE #FE8E78 #A5FE78 #78E8FE
split-complementary
#D178FE #E8FE78 #78FE8E
monochromatic
#A602FA #BC3BFE #D178FE #E6B5FE #F5E1FF

Accessibility & contrast

On white

2.68
#D178FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#D178FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178FE
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178FE#FFFFFF#000000##000000
##D178FE1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5599FF
Deuteranopia (green-blind)
#73A0FB
Tritanopia (blue-blind)
#CD8EB0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d178fe;
/* rgb */ color: rgb(209, 120, 254);
/* oklch */ color: oklch(72.3% 0.203 313.1);
Tailwind
colors: {
  custom: {
    50: '#e2a2ff',
    500: '#d178fe',
    950: '#000000',
  },
}
SCSS
$custom: #d178fe;
$custom-light: #e2a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d178fe",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 279.851,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72268,
    "c": 0.20309,
    "h": 313.1
  },
  "luminance": 0.34144
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D178FE

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

Preview Lab → · Contrast checker → · Palette generator →

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