#D781FC#D781FC

#D781FC is a light, vivid purple. Relative luminance 0.372; OKLCH L 74.1% C 0.189 H 314.9°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#D781FC
RGBrgb(215, 129, 252)
HSLhsl(282, 95%, 75%)
HSVhsv(282, 49%, 99%)
CMYKcmyk(14.7%, 48.8%, 0%, 1.2%)
CIE-LABlab(67.41, 53.16, -48.26)
CIE-LCHlch(67.41, 71.80, 317.77°)
OKLaboklab(74.11% 0.1337 -0.1342)
OKLCHoklch(74.11% 0.189 314.9)
XYZxyz(53.4425, 37.1773, 96.4373)
Luminance0.3718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D781FC #A6FC81
analogous
#9981FC #D781FC #FC81E4
triadic
#D781FC #FCD781 #81FCD7
tetradic
#D781FC #FC9981 #A6FC81 #81E4FC
square
#D781FC #FC9981 #A6FC81 #81E4FC
split-complementary
#D781FC #E4FC81 #81FC99
monochromatic
#B109F9 #C445FB #D781FC #EABDFD #F6E1FE

Accessibility & contrast

On white

2.49
#D781FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#D781FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D781FC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D781FC#FFFFFF#000000##000000
##D781FC1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679FFF
Deuteranopia (green-blind)
#80A7F9
Tritanopia (blue-blind)
#D594B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d781fc;
/* rgb */ color: rgb(215, 129, 252);
/* oklch */ color: oklch(74.1% 0.189 314.9);
Tailwind
colors: {
  custom: {
    50: '#e5a8fe',
    500: '#d781fc',
    950: '#000000',
  },
}
SCSS
$custom: #d781fc;
$custom-light: #e5a8fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d781fc",
  "rgb": {
    "r": 215,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 281.951,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74111,
    "c": 0.18948,
    "h": 314.9
  },
  "luminance": 0.37176
}

Semantic roles & 50–950 ramp

primary
#D781FC
secondary
#DFF7D4
accent
#E60045
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D781FC

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

Preview Lab → · Contrast checker → · Palette generator →

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