#D478EB#D478EB

#D478EB is a light, vivid purple. Relative luminance 0.334; OKLCH L 71.6% C 0.185 H 319.3°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#D478EB
RGBrgb(212, 120, 235)
HSLhsl(288, 74%, 70%)
HSVhsv(288, 49%, 92%)
CMYKcmyk(9.8%, 48.9%, 0%, 7.8%)
CIE-LABlab(64.51, 53.52, -43.50)
CIE-LCHlch(64.51, 68.97, 320.90°)
OKLaboklab(71.62% 0.1403 -0.1205)
OKLCHoklch(71.62% 0.185 319.3)
XYZxyz(48.8613, 33.4300, 82.4600)
Luminance0.3343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478EB #8FEB78
analogous
#9B78EB #D478EB #EB78C9
triadic
#D478EB #EBD478 #78EBD4
tetradic
#D478EB #EB9B78 #8FEB78 #78C9EB
square
#D478EB #EB9B78 #8FEB78 #78C9EB
split-complementary
#D478EB #C9EB78 #78EB9B
monochromatic
#A81ECB #C343E3 #D478EB #E5ADF3 #F6E3FB

Accessibility & contrast

On white

2.73
#D478EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#D478EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D478EB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D478EB#FFFFFF#000000##000000
##D478EB1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#80A0E8
Tritanopia (blue-blind)
#D588A7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d478eb;
/* rgb */ color: rgb(212, 120, 235);
/* oklch */ color: oklch(71.6% 0.185 319.3);
Tailwind
colors: {
  custom: {
    50: '#e3a2f2',
    500: '#d478eb',
    950: '#000000',
  },
}
SCSS
$custom: #d478eb;
$custom-light: #e3a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d478eb",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 288,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71623,
    "c": 0.18488,
    "h": 319.3
  },
  "luminance": 0.33428
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D478EB

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

Preview Lab → · Contrast checker → · Palette generator →

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