#D789F2#D789F2

#D789F2 is a light, vivid purple. Relative luminance 0.387; OKLCH L 74.8% C 0.166 H 317.0°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#D789F2
RGBrgb(215, 137, 242)
HSLhsl(285, 80%, 74%)
HSVhsv(285, 43%, 95%)
CMYKcmyk(11.2%, 43.4%, 0%, 5.1%)
CIE-LABlab(68.57, 47.00, -40.96)
CIE-LCHlch(68.57, 62.35, 318.93°)
OKLaboklab(74.83% 0.1214 -0.1132)
OKLCHoklch(74.83% 0.166 317)
XYZxyz(52.9947, 38.7507, 88.6752)
Luminance0.3875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D789F2 #A4F289
analogous
#A389F2 #D789F2 #F289D9
triadic
#D789F2 #F2D789 #89F2D7
tetradic
#D789F2 #F2A389 #A4F289 #89D9F2
square
#D789F2 #F2A389 #A4F289 #89D9F2
split-complementary
#D789F2 #D9F289 #89F2A3
monochromatic
#B21BE6 #C452EC #D789F2 #EAC0F8 #F6E3FC

Accessibility & contrast

On white

2.40
#D789F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#D789F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D789F2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D789F2#FFFFFF#000000##000000
##D789F21.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#8CAAEF
Tritanopia (blue-blind)
#D697B2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d789f2;
/* rgb */ color: rgb(215, 137, 242);
/* oklch */ color: oklch(74.8% 0.166 317.0);
Tailwind
colors: {
  custom: {
    50: '#e5adf6',
    500: '#d789f2',
    950: '#000000',
  },
}
SCSS
$custom: #d789f2;
$custom-light: #e5adf6;
$custom-dark: #000000;
JSON
{
  "hex": "#d789f2",
  "rgb": {
    "r": 215,
    "g": 137,
    "b": 242
  },
  "hsl": {
    "h": 284.571,
    "s": 80.153,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74826,
    "c": 0.16595,
    "h": 317
  },
  "luminance": 0.38749
}

Semantic roles & 50–950 ramp

primary
#D789F2
secondary
#DFF4D7
accent
#DC093F
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D789F2

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

Preview Lab → · Contrast checker → · Palette generator →

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