#D478EF#D478EF

#D478EF is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.8% C 0.189 H 318.2°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#D478EF
RGBrgb(212, 120, 239)
HSLhsl(286, 79%, 70%)
HSVhsv(286, 50%, 94%)
CMYKcmyk(11.3%, 49.8%, 0%, 6.3%)
CIE-LABlab(64.69, 54.31, -45.41)
CIE-LCHlch(64.69, 70.79, 320.10°)
OKLaboklab(71.82% 0.1407 -0.126)
OKLCHoklch(71.82% 0.189 318.2)
XYZxyz(49.4457, 33.6637, 85.5378)
Luminance0.3366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478EF #93EF78
analogous
#9978EF #D478EF #EF78CE
triadic
#D478EF #EFD478 #78EFD4
tetradic
#D478EF #EF9978 #93EF78 #78CEEF
square
#D478EF #EF9978 #93EF78 #78CEEF
split-complementary
#D478EF #CEEF78 #78EF99
monochromatic
#A919D4 #C341E9 #D478EF #E5AFF5 #F6E4FC

Accessibility & contrast

On white

2.72
#D478EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#D478EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D478EF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D478EF#FFFFFF#000000##000000
##D478EF1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6297F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#D489A9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d478ef;
/* rgb */ color: rgb(212, 120, 239);
/* oklch */ color: oklch(71.8% 0.189 318.2);
Tailwind
colors: {
  custom: {
    50: '#e3a2f4',
    500: '#d478ef',
    950: '#000000',
  },
}
SCSS
$custom: #d478ef;
$custom-light: #e3a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d478ef",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 286.387,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.71823,
    "c": 0.18892,
    "h": 318.2
  },
  "luminance": 0.33662
}

Semantic roles & 50–950 ramp

primary
#D478EF
secondary
#D8F2D1
accent
#DB0A3A
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D478EF

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

Preview Lab → · Contrast checker → · Palette generator →

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