#D18EF5#D18EF5

#D18EF5 is a light, vivid violet. Relative luminance 0.395; OKLCH L 75.1% C 0.158 H 313.0°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#D18EF5
RGBrgb(209, 142, 245)
HSLhsl(279, 84%, 76%)
HSVhsv(279, 42%, 96%)
CMYKcmyk(14.7%, 42%, 0%, 3.9%)
CIE-LABlab(69.11, 43.26, -41.81)
CIE-LCHlch(69.11, 60.16, 315.98°)
OKLaboklab(75.13% 0.1079 -0.1158)
OKLCHoklch(75.13% 0.158 313)
XYZxyz(52.4462, 39.4950, 91.2290)
Luminance0.3949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18EF5 #B2F58E
analogous
#9D8EF5 #D18EF5 #F58EE5
triadic
#D18EF5 #F5D18E #8EF5D1
tetradic
#D18EF5 #F59D8E #B2F58E #8EE5F5
square
#D18EF5 #F59D8E #B2F58E #8EE5F5
split-complementary
#D18EF5 #E5F58E #8EF59D
monochromatic
#A31EEB #BA56F0 #D18EF5 #E8C6FA #F4E3FD

Accessibility & contrast

On white

2.36
#D18EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#D18EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18EF5
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18EF5#FFFFFF#000000##000000
##D18EF51.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA5F9
Deuteranopia (green-blind)
#8BAAF2
Tritanopia (blue-blind)
#CE9DB6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d18ef5;
/* rgb */ color: rgb(209, 142, 245);
/* oklch */ color: oklch(75.1% 0.158 313.0);
Tailwind
colors: {
  custom: {
    50: '#e1b0f9',
    500: '#d18ef5',
    950: '#000000',
  },
}
SCSS
$custom: #d18ef5;
$custom-light: #e1b0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d18ef5",
  "rgb": {
    "r": 209,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 279.029,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75128,
    "c": 0.1583,
    "h": 313
  },
  "luminance": 0.39494
}

Semantic roles & 50–950 ramp

primary
#D18EF5
secondary
#E1F4D7
accent
#E00552
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151117
muted
#838085

Preview Lab

Preview with #D18EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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