#D18EF8#D18EF8

#D18EF8 is a light, vivid violet. Relative luminance 0.397; OKLCH L 75.3% C 0.162 H 312.1°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#D18EF8
RGBrgb(209, 142, 248)
HSLhsl(278, 88%, 76%)
HSVhsv(278, 43%, 97%)
CMYKcmyk(15.7%, 42.7%, 0%, 2.7%)
CIE-LABlab(69.24, 43.89, -43.24)
CIE-LCHlch(69.24, 61.61, 315.43°)
OKLaboklab(75.27% 0.1085 -0.1199)
OKLCHoklch(75.27% 0.162 312.1)
XYZxyz(52.9079, 39.6796, 93.6605)
Luminance0.3968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18EF8 #B5F88E
analogous
#9C8EF8 #D18EF8 #F88EEA
triadic
#D18EF8 #F8D18E #8EF8D1
tetradic
#D18EF8 #F89C8E #B5F88E #8EEAF8
square
#D18EF8 #F89C8E #B5F88E #8EEAF8
split-complementary
#D18EF8 #EAF88E #8EF89C
monochromatic
#A21BF1 #BA54F4 #D18EF8 #E8C8FC #F3E2FD

Accessibility & contrast

On white

2.35
#D18EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#D18EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18EF8
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18EF8#FFFFFF#000000##000000
##D18EF81.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A6FC
Deuteranopia (green-blind)
#8AABF5
Tritanopia (blue-blind)
#CD9EB7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d18ef8;
/* rgb */ color: rgb(209, 142, 248);
/* oklch */ color: oklch(75.3% 0.162 312.1);
Tailwind
colors: {
  custom: {
    50: '#e1b0fb',
    500: '#d18ef8',
    950: '#000000',
  },
}
SCSS
$custom: #d18ef8;
$custom-light: #e1b0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d18ef8",
  "rgb": {
    "r": 209,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 277.925,
    "s": 88.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.75271,
    "c": 0.16169,
    "h": 312.1
  },
  "luminance": 0.39679
}

Semantic roles & 50–950 ramp

primary
#D18EF8
secondary
#E1F5D6
accent
#E50155
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151117
muted
#838085

Preview Lab

Preview with #D18EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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