#D478FE#D478FE

#D478FE is a light, highly saturated purple. Relative luminance 0.346; OKLCH L 72.6% C 0.204 H 314.1°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#D478FE
RGBrgb(212, 120, 254)
HSLhsl(281, 99%, 73%)
HSVhsv(281, 53%, 100%)
CMYKcmyk(16.5%, 52.8%, 0%, 0.4%)
CIE-LABlab(65.43, 57.32, -52.51)
CIE-LCHlch(65.43, 77.74, 317.51°)
OKLaboklab(72.6% 0.1422 -0.1466)
OKLCHoklch(72.6% 0.204 314.1)
XYZxyz(51.7543, 34.5872, 97.6964)
Luminance0.3459 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478FE #A2FE78
analogous
#9178FE #D478FE #FE78E5
triadic
#D478FE #FED478 #78FED4
tetradic
#D478FE #FE9178 #A2FE78 #78E5FE
square
#D478FE #FE9178 #A2FE78 #78E5FE
split-complementary
#D478FE #E5FE78 #78FE91
monochromatic
#AC02FA #C13BFE #D478FE #E7B5FE #F5E1FF

Accessibility & contrast

On white

2.65
#D478FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#D478FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D478FE
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D478FE#FFFFFF#000000##000000
##D478FE1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#579AFF
Deuteranopia (green-blind)
#75A1FB
Tritanopia (blue-blind)
#D18EB0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d478fe;
/* rgb */ color: rgb(212, 120, 254);
/* oklch */ color: oklch(72.6% 0.204 314.1);
Tailwind
colors: {
  custom: {
    50: '#e4a2ff',
    500: '#d478fe',
    950: '#000000',
  },
}
SCSS
$custom: #d478fe;
$custom-light: #e4a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d478fe",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 281.194,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72601,
    "c": 0.20426,
    "h": 314.1
  },
  "luminance": 0.34586
}

Semantic roles & 50–950 ramp

primary
#D478FE
secondary
#DFF7D4
accent
#E60048
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D478FE

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

Preview Lab → · Contrast checker → · Palette generator →

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