#D477F2#D477F2

#D477F2 is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.8% C 0.194 H 317.4°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#D477F2
RGBrgb(212, 119, 242)
HSLhsl(285, 83%, 71%)
HSVhsv(285, 51%, 95%)
CMYKcmyk(12.4%, 50.8%, 0%, 5.1%)
CIE-LABlab(64.65, 55.40, -47.15)
CIE-LCHlch(64.65, 72.75, 319.60°)
OKLaboklab(71.83% 0.1424 -0.131)
OKLCHoklch(71.83% 0.194 317.4)
XYZxyz(49.7729, 33.6032, 87.8514)
Luminance0.3360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D477F2 #95F277
analogous
#9677F2 #D477F2 #F277D2
triadic
#D477F2 #F2D477 #77F2D4
tetradic
#D477F2 #F29677 #95F277 #77D2F2
square
#D477F2 #F29677 #95F277 #77D2F2
split-complementary
#D477F2 #D2F277 #77F296
monochromatic
#AA15DA #C23FED #D477F2 #E6AFF7 #F6E3FC

Accessibility & contrast

On white

2.72
#D477F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#D477F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D477F2
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D477F2#FFFFFF#000000##000000
##D477F21.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E97F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#D389AA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d477f2;
/* rgb */ color: rgb(212, 119, 242);
/* oklch */ color: oklch(71.8% 0.194 317.4);
Tailwind
colors: {
  custom: {
    50: '#e3a1f7',
    500: '#d477f2',
    950: '#000000',
  },
}
SCSS
$custom: #d477f2;
$custom-light: #e3a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d477f2",
  "rgb": {
    "r": 212,
    "g": 119,
    "b": 242
  },
  "hsl": {
    "h": 285.366,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71834,
    "c": 0.19352,
    "h": 317.4
  },
  "luminance": 0.33602
}

Semantic roles & 50–950 ramp

primary
#D477F2
secondary
#DAF3D2
accent
#DF073B
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D477F2

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

Preview Lab → · Contrast checker → · Palette generator →

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