#D789F7#D789F7

#D789F7 is a light, vivid purple. Relative luminance 0.391; OKLCH L 75.1% C 0.171 H 315.5°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#D789F7
RGBrgb(215, 137, 247)
HSLhsl(283, 87%, 75%)
HSVhsv(283, 45%, 97%)
CMYKcmyk(13%, 44.5%, 0%, 3.1%)
CIE-LABlab(68.79, 48.01, -43.35)
CIE-LCHlch(68.79, 64.69, 317.92°)
OKLaboklab(75.06% 0.1222 -0.1201)
OKLCHoklch(75.06% 0.171 315.5)
XYZxyz(53.7559, 39.0552, 92.6843)
Luminance0.3905 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D789F7 #A9F789
analogous
#A089F7 #D789F7 #F789E0
triadic
#D789F7 #F7D789 #89F7D7
tetradic
#D789F7 #F7A089 #A9F789 #89E0F7
square
#D789F7 #F7A089 #A9F789 #89E0F7
split-complementary
#D789F7 #E0F789 #89F7A0
monochromatic
#B016EF #C450F3 #D789F7 #EAC2FB #F5E2FD

Accessibility & contrast

On white

2.38
#D789F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#D789F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D789F7
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D789F7#FFFFFF#000000##000000
##D789F71.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A3FB
Deuteranopia (green-blind)
#8AAAF4
Tritanopia (blue-blind)
#D599B4
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d789f7;
/* rgb */ color: rgb(215, 137, 247);
/* oklch */ color: oklch(75.1% 0.171 315.5);
Tailwind
colors: {
  custom: {
    50: '#e5adfa',
    500: '#d789f7',
    950: '#000000',
  },
}
SCSS
$custom: #d789f7;
$custom-light: #e5adfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d789f7",
  "rgb": {
    "r": 215,
    "g": 137,
    "b": 247
  },
  "hsl": {
    "h": 282.545,
    "s": 87.302,
    "l": 75.294
  },
  "oklch": {
    "l": 0.75063,
    "c": 0.17131,
    "h": 315.5
  },
  "luminance": 0.39054
}

Semantic roles & 50–950 ramp

primary
#D789F7
secondary
#DFF5D6
accent
#E40243
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D789F7

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

Preview Lab → · Contrast checker → · Palette generator →

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