#D781FB#D781FB

#D781FB is a light, vivid purple. Relative luminance 0.371; OKLCH L 74.1% C 0.188 H 315.2°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#D781FB
RGBrgb(215, 129, 251)
HSLhsl(282, 94%, 75%)
HSVhsv(282, 49%, 98%)
CMYKcmyk(14.3%, 48.6%, 0%, 1.6%)
CIE-LABlab(67.36, 52.96, -47.79)
CIE-LCHlch(67.36, 71.33, 317.94°)
OKLaboklab(74.06% 0.1336 -0.1329)
OKLCHoklch(74.06% 0.188 315.2)
XYZxyz(53.2845, 37.1141, 95.6049)
Luminance0.3711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D781FB #A5FB81
analogous
#9A81FB #D781FB #FB81E2
triadic
#D781FB #FBD781 #81FBD7
tetradic
#D781FB #FB9A81 #A5FB81 #81E2FB
square
#D781FB #FB9A81 #A5FB81 #81E2FB
split-complementary
#D781FB #E2FB81 #81FB9A
monochromatic
#B10AF7 #C446F9 #D781FB #EABCFD #F6E1FE

Accessibility & contrast

On white

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

On black

8.42
#D781FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D781FB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D781FB#FFFFFF#000000##000000
##D781FB1.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#679FFF
Deuteranopia (green-blind)
#81A6F8
Tritanopia (blue-blind)
#D593B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d781fb;
/* rgb */ color: rgb(215, 129, 251);
/* oklch */ color: oklch(74.1% 0.188 315.2);
Tailwind
colors: {
  custom: {
    50: '#e5a8fd',
    500: '#d781fb',
    950: '#000000',
  },
}
SCSS
$custom: #d781fb;
$custom-light: #e5a8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d781fb",
  "rgb": {
    "r": 215,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 282.295,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.7406,
    "c": 0.18843,
    "h": 315.2
  },
  "luminance": 0.37113
}

Semantic roles & 50–950 ramp

primary
#D781FB
secondary
#DFF6D5
accent
#E60044
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D781FB

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

Preview Lab → · Contrast checker → · Palette generator →

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