#D477F7#D477F7

#D477F7 is a light, vivid purple. Relative luminance 0.339; OKLCH L 72.1% C 0.199 H 316.0°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#D477F7
RGBrgb(212, 119, 247)
HSLhsl(284, 89%, 72%)
HSVhsv(284, 52%, 97%)
CMYKcmyk(14.2%, 51.8%, 0%, 3.1%)
CIE-LABlab(64.89, 56.40, -49.52)
CIE-LCHlch(64.89, 75.05, 318.72°)
OKLaboklab(72.09% 0.1429 -0.1379)
OKLCHoklch(72.09% 0.199 316)
XYZxyz(50.5342, 33.9077, 91.8605)
Luminance0.3391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D477F7 #9AF777
analogous
#9477F7 #D477F7 #F777DA
triadic
#D477F7 #F7D477 #77F7D4
tetradic
#D477F7 #F79477 #9AF777 #77DAF7
square
#D477F7 #F79477 #9AF777 #77DAF7
split-complementary
#D477F7 #DAF777 #77F794
monochromatic
#AB0EE6 #C23DF4 #D477F7 #E6B1FA #F6E2FD

Accessibility & contrast

On white

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

On black

7.78
#D477F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D477F7
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D477F7#FFFFFF#000000##000000
##D477F71.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FB
Deuteranopia (green-blind)
#78A0F4
Tritanopia (blue-blind)
#D28BAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #d477f7;
/* rgb */ color: rgb(212, 119, 247);
/* oklch */ color: oklch(72.1% 0.199 316.0);
Tailwind
colors: {
  custom: {
    50: '#e4a1fa',
    500: '#d477f7',
    950: '#000000',
  },
}
SCSS
$custom: #d477f7;
$custom-light: #e4a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d477f7",
  "rgb": {
    "r": 212,
    "g": 119,
    "b": 247
  },
  "hsl": {
    "h": 283.594,
    "s": 88.889,
    "l": 71.765
  },
  "oklch": {
    "l": 0.72092,
    "c": 0.1986,
    "h": 316
  },
  "luminance": 0.33906
}

Semantic roles & 50–950 ramp

primary
#D477F7
secondary
#DEF5D5
accent
#E6003F
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D477F7

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

Preview Lab → · Contrast checker → · Palette generator →

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