#D18DF7#D18DF7

#D18DF7 is a light, vivid violet. Relative luminance 0.393; OKLCH L 75.1% C 0.162 H 312.5°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#D18DF7
RGBrgb(209, 141, 247)
HSLhsl(278, 87%, 76%)
HSVhsv(278, 43%, 97%)
CMYKcmyk(15.4%, 42.9%, 0%, 3.1%)
CIE-LABlab(68.98, 44.21, -43.10)
CIE-LCHlch(68.98, 61.74, 315.73°)
OKLaboklab(75.06% 0.1097 -0.1195)
OKLCHoklch(75.06% 0.162 312.5)
XYZxyz(52.6050, 39.3215, 92.7963)
Luminance0.3932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18DF7 #B3F78D
analogous
#9C8DF7 #D18DF7 #F78DE8
triadic
#D18DF7 #F7D18D #8DF7D1
tetradic
#D18DF7 #F79C8D #B3F78D #8DE8F7
square
#D18DF7 #F79C8D #B3F78D #8DE8F7
split-complementary
#D18DF7 #E8F78D #8DF79C
monochromatic
#A31BEF #BA54F3 #D18DF7 #E8C6FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.86
#D18DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18DF7
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18DF7#FFFFFF#000000##000000
##D18DF71.002.378.868.86
#FFFFFF2.371.0021.0021.00
#0000008.8621.001.001.00
##0000008.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A5FB
Deuteranopia (green-blind)
#89AAF4
Tritanopia (blue-blind)
#CD9DB6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d18df7;
/* rgb */ color: rgb(209, 141, 247);
/* oklch */ color: oklch(75.1% 0.162 312.5);
Tailwind
colors: {
  custom: {
    50: '#e1affa',
    500: '#d18df7',
    950: '#000000',
  },
}
SCSS
$custom: #d18df7;
$custom-light: #e1affa;
$custom-dark: #000000;
JSON
{
  "hex": "#d18df7",
  "rgb": {
    "r": 209,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 278.491,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75063,
    "c": 0.1622,
    "h": 312.5
  },
  "luminance": 0.3932
}

Semantic roles & 50–950 ramp

primary
#D18DF7
secondary
#E1F5D6
accent
#E30253
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #D18DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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