#D18EF2#D18EF2

#D18EF2 is a light, vivid purple. Relative luminance 0.393; OKLCH L 75.0% C 0.155 H 313.9°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#D18EF2
RGBrgb(209, 142, 242)
HSLhsl(280, 79%, 75%)
HSVhsv(280, 41%, 95%)
CMYKcmyk(13.6%, 41.3%, 0%, 5.1%)
CIE-LABlab(68.98, 42.63, -40.37)
CIE-LCHlch(68.98, 58.72, 316.56°)
OKLaboklab(74.99% 0.1074 -0.1116)
OKLCHoklch(74.99% 0.155 313.9)
XYZxyz(51.9919, 39.3133, 88.8365)
Luminance0.3931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18EF2 #AFF28E
analogous
#9F8EF2 #D18EF2 #F28EE1
triadic
#D18EF2 #F2D18E #8EF2D1
tetradic
#D18EF2 #F29F8E #AFF28E #8EE1F2
square
#D18EF2 #F29F8E #AFF28E #8EE1F2
split-complementary
#D18EF2 #E1F28E #8EF29F
monochromatic
#A420E5 #BB57EC #D18EF2 #E7C5F8 #F4E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D18EF2#FFFFFF#000000##000000
##D18EF21.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)
#7CA5F6
Deuteranopia (green-blind)
#8DAAEF
Tritanopia (blue-blind)
#CF9CB5
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #d18ef2;
/* rgb */ color: rgb(209, 142, 242);
/* oklch */ color: oklch(75.0% 0.155 313.9);
Tailwind
colors: {
  custom: {
    50: '#e0b0f6',
    500: '#d18ef2',
    950: '#000000',
  },
}
SCSS
$custom: #d18ef2;
$custom-light: #e0b0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d18ef2",
  "rgb": {
    "r": 209,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 280.2,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74987,
    "c": 0.15492,
    "h": 313.9
  },
  "luminance": 0.39312
}

Semantic roles & 50–950 ramp

primary
#D18EF2
secondary
#E1F4D7
accent
#DC0A4F
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151117
muted
#838085

Preview Lab

Preview with #D18EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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