#D781F2#D781F2

#D781F2 is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.6% C 0.179 H 317.7°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#D781F2
RGBrgb(215, 129, 242)
HSLhsl(286, 81%, 73%)
HSVhsv(286, 47%, 95%)
CMYKcmyk(11.2%, 46.7%, 0%, 5.1%)
CIE-LABlab(66.95, 51.15, -43.51)
CIE-LCHlch(66.95, 67.15, 319.62°)
OKLaboklab(73.61% 0.1324 -0.1205)
OKLCHoklch(73.61% 0.179 317.7)
XYZxyz(51.8994, 36.5601, 88.3101)
Luminance0.3656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D781F2 #9CF281
analogous
#9F81F2 #D781F2 #F281D4
triadic
#D781F2 #F2D781 #81F2D7
tetradic
#D781F2 #F29F81 #9CF281 #81D4F2
square
#D781F2 #F29F81 #9CF281 #81D4F2
split-complementary
#D781F2 #D4F281 #81F29F
monochromatic
#B117E1 #C54AEC #D781F2 #E9B8F8 #F6E3FC

Accessibility & contrast

On white

2.53
#D781F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#D781F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D781F2
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D781F2#FFFFFF#000000##000000
##D781F21.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9DF6
Deuteranopia (green-blind)
#85A6EF
Tritanopia (blue-blind)
#D791AE
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d781f2;
/* rgb */ color: rgb(215, 129, 242);
/* oklch */ color: oklch(73.6% 0.179 317.7);
Tailwind
colors: {
  custom: {
    50: '#e5a8f7',
    500: '#d781f2',
    950: '#000000',
  },
}
SCSS
$custom: #d781f2;
$custom-light: #e5a8f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d781f2",
  "rgb": {
    "r": 215,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 285.664,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73614,
    "c": 0.17903,
    "h": 317.7
  },
  "luminance": 0.36558
}

Semantic roles & 50–950 ramp

primary
#D781F2
secondary
#DEF4D7
accent
#DE083B
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D781F2

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

Preview Lab → · Contrast checker → · Palette generator →

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