#D478F8#D478F8

#D478F8 is a light, vivid purple. Relative luminance 0.342; OKLCH L 72.3% C 0.198 H 315.7°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#D478F8
RGBrgb(212, 120, 248)
HSLhsl(283, 90%, 72%)
HSVhsv(283, 52%, 97%)
CMYKcmyk(14.5%, 51.6%, 0%, 2.7%)
CIE-LABlab(65.13, 56.10, -49.69)
CIE-LCHlch(65.13, 74.94, 318.47°)
OKLaboklab(72.28% 0.1417 -0.1384)
OKLCHoklch(72.28% 0.198 315.7)
XYZxyz(50.8085, 34.2089, 92.7153)
Luminance0.3421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478F8 #9CF878
analogous
#9478F8 #D478F8 #F878DC
triadic
#D478F8 #F8D478 #78F8D4
tetradic
#D478F8 #F89478 #9CF878 #78DCF8
square
#D478F8 #F89478 #9CF878 #78DCF8
split-complementary
#D478F8 #DCF878 #78F894
monochromatic
#AB0CE9 #C13EF5 #D478F8 #E7B2FB #F6E2FD

Accessibility & contrast

On white

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

On black

7.84
#D478F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D478F8
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D478F8#FFFFFF#000000##000000
##D478F81.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FC
Deuteranopia (green-blind)
#78A1F5
Tritanopia (blue-blind)
#D28CAD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d478f8;
/* rgb */ color: rgb(212, 120, 248);
/* oklch */ color: oklch(72.3% 0.198 315.7);
Tailwind
colors: {
  custom: {
    50: '#e4a2fb',
    500: '#d478f8',
    950: '#000000',
  },
}
SCSS
$custom: #d478f8;
$custom-light: #e4a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d478f8",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 283.125,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72284,
    "c": 0.19809,
    "h": 315.7
  },
  "luminance": 0.34207
}

Semantic roles & 50–950 ramp

primary
#D478F8
secondary
#DEF6D5
accent
#E60041
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D478F8

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

Preview Lab → · Contrast checker → · Palette generator →

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