#D178EB#D178EB

#D178EB is a light, vivid purple. Relative luminance 0.330; OKLCH L 71.3% C 0.183 H 318.2°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#D178EB
RGBrgb(209, 120, 235)
HSLhsl(286, 74%, 70%)
HSVhsv(286, 49%, 92%)
CMYKcmyk(11.1%, 48.9%, 0%, 7.8%)
CIE-LABlab(64.15, 52.70, -44.08)
CIE-LCHlch(64.15, 68.71, 320.09°)
OKLaboklab(71.28% 0.1368 -0.1222)
OKLCHoklch(71.28% 0.183 318.2)
XYZxyz(48.0043, 32.9881, 82.4198)
Luminance0.3299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D178EB #92EB78
analogous
#9878EB #D178EB #EB78CC
triadic
#D178EB #EBD178 #78EBD1
tetradic
#D178EB #EB9878 #92EB78 #78CCEB
square
#D178EB #EB9878 #92EB78 #78CCEB
split-complementary
#D178EB #CCEB78 #78EB98
monochromatic
#A41ECB #BF43E3 #D178EB #E3ADF3 #F5E3FB

Accessibility & contrast

On white

2.76
#D178EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#D178EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D178EB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D178EB#FFFFFF#000000##000000
##D178EB1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396EF
Deuteranopia (green-blind)
#7D9EE8
Tritanopia (blue-blind)
#D188A7
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d178eb;
/* rgb */ color: rgb(209, 120, 235);
/* oklch */ color: oklch(71.3% 0.183 318.2);
Tailwind
colors: {
  custom: {
    50: '#e1a2f2',
    500: '#d178eb',
    950: '#000000',
  },
}
SCSS
$custom: #d178eb;
$custom-light: #e1a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d178eb",
  "rgb": {
    "r": 209,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 286.435,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71282,
    "c": 0.18342,
    "h": 318.2
  },
  "luminance": 0.32986
}

Semantic roles & 50–950 ramp

primary
#D178EB
secondary
#D6F0CF
accent
#D60F3C
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D178EB

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

Preview Lab → · Contrast checker → · Palette generator →

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