#D477EC#D477EC

#D477EC is a light, vivid purple. Relative luminance 0.332; OKLCH L 71.5% C 0.187 H 319.1°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#D477EC
RGBrgb(212, 119, 236)
HSLhsl(288, 75%, 70%)
HSVhsv(288, 50%, 93%)
CMYKcmyk(10.2%, 49.6%, 0%, 7.5%)
CIE-LABlab(64.36, 54.22, -44.28)
CIE-LCHlch(64.36, 70.00, 320.76°)
OKLaboklab(71.53% 0.1417 -0.1227)
OKLCHoklch(71.53% 0.187 319.1)
XYZxyz(48.8866, 33.2486, 83.1831)
Luminance0.3325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D477EC #8FEC77
analogous
#9977EC #D477EC #EC77CA
triadic
#D477EC #ECD477 #77ECD4
tetradic
#D477EC #EC9977 #8FEC77 #77CAEC
square
#D477EC #EC9977 #8FEC77 #77CAEC
split-complementary
#D477EC #CAEC77 #77EC99
monochromatic
#A81DCC #C341E4 #D477EC #E5ADF4 #F6E2FB

Accessibility & contrast

On white

2.75
#D477EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#D477EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D477EC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D477EC#FFFFFF#000000##000000
##D477EC1.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6296F0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#D587A7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d477ec;
/* rgb */ color: rgb(212, 119, 236);
/* oklch */ color: oklch(71.5% 0.187 319.1);
Tailwind
colors: {
  custom: {
    50: '#e3a1f2',
    500: '#d477ec',
    950: '#000000',
  },
}
SCSS
$custom: #d477ec;
$custom-light: #e3a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d477ec",
  "rgb": {
    "r": 212,
    "g": 119,
    "b": 236
  },
  "hsl": {
    "h": 287.692,
    "s": 75.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71531,
    "c": 0.18748,
    "h": 319.1
  },
  "luminance": 0.33247
}

Semantic roles & 50–950 ramp

primary
#D477EC
secondary
#D6F0CF
accent
#D80E37
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D477EC

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

Preview Lab → · Contrast checker → · Palette generator →

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