#D789FC#D789FC

#D789FC is a light, vivid purple. Relative luminance 0.394; OKLCH L 75.3% C 0.177 H 314.1°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#D789FC
RGBrgb(215, 137, 252)
HSLhsl(281, 95%, 76%)
HSVhsv(281, 46%, 99%)
CMYKcmyk(14.7%, 45.6%, 0%, 1.2%)
CIE-LABlab(69.02, 49.03, -45.73)
CIE-LCHlch(69.02, 67.05, 317.00°)
OKLaboklab(75.31% 0.1229 -0.127)
OKLCHoklch(75.31% 0.177 314.1)
XYZxyz(54.5378, 39.3680, 96.8024)
Luminance0.3937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D789FC #AEFC89
analogous
#9E89FC #D789FC #FC89E7
triadic
#D789FC #FCD789 #89FCD7
tetradic
#D789FC #FC9E89 #AEFC89 #89E7FC
square
#D789FC #FC9E89 #AEFC89 #89E7FC
split-complementary
#D789FC #E7FC89 #89FC9E
monochromatic
#AF12F9 #C34DFA #D789FC #EBC5FE #F5E1FE

Accessibility & contrast

On white

2.37
#D789FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#D789FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D789FC
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D789FC#FFFFFF#000000##000000
##D789FC1.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A4FF
Deuteranopia (green-blind)
#87ABF9
Tritanopia (blue-blind)
#D49AB7
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d789fc;
/* rgb */ color: rgb(215, 137, 252);
/* oklch */ color: oklch(75.3% 0.177 314.1);
Tailwind
colors: {
  custom: {
    50: '#e5adfe',
    500: '#d789fc',
    950: '#000000',
  },
}
SCSS
$custom: #d789fc;
$custom-light: #e5adfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d789fc",
  "rgb": {
    "r": 215,
    "g": 137,
    "b": 252
  },
  "hsl": {
    "h": 280.696,
    "s": 95.041,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75306,
    "c": 0.17672,
    "h": 314.1
  },
  "luminance": 0.39367
}

Semantic roles & 50–950 ramp

primary
#D789FC
secondary
#DFF6D5
accent
#E6004A
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D789FC

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

Preview Lab → · Contrast checker → · Palette generator →

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