#D478F2#D478F2

#D478F2 is a light, vivid purple. Relative luminance 0.338; OKLCH L 72.0% C 0.192 H 317.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#D478F2
RGBrgb(212, 120, 242)
HSLhsl(285, 82%, 71%)
HSVhsv(285, 50%, 95%)
CMYKcmyk(12.4%, 50.4%, 0%, 5.1%)
CIE-LABlab(64.84, 54.90, -46.84)
CIE-LCHlch(64.84, 72.17, 319.53°)
OKLaboklab(71.97% 0.1411 -0.1301)
OKLCHoklch(71.97% 0.192 317.3)
XYZxyz(49.8926, 33.8425, 87.8913)
Luminance0.3384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D478F2 #96F278
analogous
#9778F2 #D478F2 #F278D3
triadic
#D478F2 #F2D478 #78F2D4
tetradic
#D478F2 #F29778 #96F278 #78D3F2
square
#D478F2 #F29778 #96F278 #78D3F2
split-complementary
#D478F2 #D3F278 #78F297
monochromatic
#AA15DB #C240ED #D478F2 #E6B0F7 #F6E3FC

Accessibility & contrast

On white

2.70
#D478F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#D478F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D478F2
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D478F2#FFFFFF#000000##000000
##D478F21.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6097F6
Deuteranopia (green-blind)
#7CA0EF
Tritanopia (blue-blind)
#D38AAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d478f2;
/* rgb */ color: rgb(212, 120, 242);
/* oklch */ color: oklch(72.0% 0.192 317.3);
Tailwind
colors: {
  custom: {
    50: '#e3a2f7',
    500: '#d478f2',
    950: '#000000',
  },
}
SCSS
$custom: #d478f2;
$custom-light: #e3a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d478f2",
  "rgb": {
    "r": 212,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 285.246,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71975,
    "c": 0.19196,
    "h": 317.3
  },
  "luminance": 0.33841
}

Semantic roles & 50–950 ramp

primary
#D478F2
secondary
#DBF3D3
accent
#DF073C
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D478F2

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

Preview Lab → · Contrast checker → · Palette generator →

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