#D789EF#D789EF

#D789EF is a light, vivid purple. Relative luminance 0.386; OKLCH L 74.7% C 0.163 H 317.9°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#D789EF
RGBrgb(215, 137, 239)
HSLhsl(286, 76%, 74%)
HSVhsv(286, 43%, 94%)
CMYKcmyk(10%, 42.7%, 0%, 6.3%)
CIE-LABlab(68.44, 46.40, -39.52)
CIE-LCHlch(68.44, 60.95, 319.58°)
OKLaboklab(74.69% 0.1208 -0.109)
OKLCHoklch(74.69% 0.163 317.9)
XYZxyz(52.5478, 38.5720, 86.3217)
Luminance0.3857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D789EF #A1EF89
analogous
#A489EF #D789EF #EF89D4
triadic
#D789EF #EFD789 #89EFD7
tetradic
#D789EF #EFA489 #A1EF89 #89D4EF
square
#D789EF #EFA489 #A1EF89 #89D4EF
split-complementary
#D789EF #D4EF89 #89EFA4
monochromatic
#B21EDF #C553E8 #D789EF #E9BFF6 #F6E4FB

Accessibility & contrast

On white

2.41
#D789EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#D789EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D789EF
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D789EF#FFFFFF#000000##000000
##D789EF1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A2F3
Deuteranopia (green-blind)
#8DAAEC
Tritanopia (blue-blind)
#D796B1
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d789ef;
/* rgb */ color: rgb(215, 137, 239);
/* oklch */ color: oklch(74.7% 0.163 317.9);
Tailwind
colors: {
  custom: {
    50: '#e5adf4',
    500: '#d789ef',
    950: '#000000',
  },
}
SCSS
$custom: #d789ef;
$custom-light: #e5adf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d789ef",
  "rgb": {
    "r": 215,
    "g": 137,
    "b": 239
  },
  "hsl": {
    "h": 285.882,
    "s": 76.119,
    "l": 73.725
  },
  "oklch": {
    "l": 0.74686,
    "c": 0.16276,
    "h": 317.9
  },
  "luminance": 0.3857
}

Semantic roles & 50–950 ramp

primary
#D789EF
secondary
#DEF3D8
accent
#D80D3D
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D789EF

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

Preview Lab → · Contrast checker → · Palette generator →

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