#D478FB#D478FB

#D478FB is a light, highly saturated purple. Relative luminance 0.344; OKLCH L 72.4% C 0.201 H 314.9°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#D478FB
RGBrgb(212, 120, 251)
HSLhsl(282, 94%, 73%)
HSVhsv(282, 52%, 98%)
CMYKcmyk(15.5%, 52.2%, 0%, 1.6%)
CIE-LABlab(65.28, 56.71, -51.10)
CIE-LCHlch(65.28, 76.34, 317.98°)
OKLaboklab(72.44% 0.142 -0.1425)
OKLCHoklch(72.44% 0.201 314.9)
XYZxyz(51.2777, 34.3965, 95.1861)
Luminance0.3439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478FB #9FFB78
analogous
#9278FB #D478FB #FB78E1
triadic
#D478FB #FBD478 #78FBD4
tetradic
#D478FB #FB9278 #9FFB78 #78E1FB
square
#D478FB #FB9278 #9FFB78 #78E1FB
split-complementary
#D478FB #E1FB78 #78FB92
monochromatic
#AC07F1 #C13DF9 #D478FB #E7B3FD #F6E1FE

Accessibility & contrast

On white

2.67
#D478FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#D478FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D478FB
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D478FB#FFFFFF#000000##000000
##D478FB1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#77A1F8
Tritanopia (blue-blind)
#D18DAF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d478fb;
/* rgb */ color: rgb(212, 120, 251);
/* oklch */ color: oklch(72.4% 0.201 314.9);
Tailwind
colors: {
  custom: {
    50: '#e4a2fd',
    500: '#d478fb',
    950: '#000000',
  },
}
SCSS
$custom: #d478fb;
$custom-light: #e4a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d478fb",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 282.137,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72442,
    "c": 0.20117,
    "h": 314.9
  },
  "luminance": 0.34395
}

Semantic roles & 50–950 ramp

primary
#D478FB
secondary
#DFF6D5
accent
#E60044
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D478FB

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

Preview Lab → · Contrast checker → · Palette generator →

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