#D478F7#D478F7

#D478F7 is a light, vivid purple. Relative luminance 0.341; OKLCH L 72.2% C 0.197 H 315.9°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#D478F7
RGBrgb(212, 120, 247)
HSLhsl(283, 89%, 72%)
HSVhsv(283, 51%, 97%)
CMYKcmyk(14.2%, 51.4%, 0%, 3.1%)
CIE-LABlab(65.08, 55.90, -49.22)
CIE-LCHlch(65.08, 74.48, 318.64°)
OKLaboklab(72.23% 0.1416 -0.137)
OKLCHoklch(72.23% 0.197 315.9)
XYZxyz(50.6538, 34.1470, 91.9004)
Luminance0.3414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478F7 #9BF778
analogous
#9578F7 #D478F7 #F778DA
triadic
#D478F7 #F7D478 #78F7D4
tetradic
#D478F7 #F79578 #9BF778 #78DAF7
square
#D478F7 #F79578 #9BF778 #78DAF7
split-complementary
#D478F7 #DAF778 #78F795
monochromatic
#AB0EE7 #C23EF4 #D478F7 #E6B2FA #F6E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D478F7#FFFFFF#000000##000000
##D478F71.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)
#5C98FB
Deuteranopia (green-blind)
#79A1F4
Tritanopia (blue-blind)
#D28CAD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d478f7;
/* rgb */ color: rgb(212, 120, 247);
/* oklch */ color: oklch(72.2% 0.197 315.9);
Tailwind
colors: {
  custom: {
    50: '#e4a2fa',
    500: '#d478f7',
    950: '#000000',
  },
}
SCSS
$custom: #d478f7;
$custom-light: #e4a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d478f7",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 283.465,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.72232,
    "c": 0.19706,
    "h": 315.9
  },
  "luminance": 0.34145
}

Semantic roles & 50–950 ramp

primary
#D478F7
secondary
#DEF5D5
accent
#E5003F
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D478F7

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

Preview Lab → · Contrast checker → · Palette generator →

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