#D18EFB#D18EFB

#D18EFB is a light, vivid violet. Relative luminance 0.399; OKLCH L 75.4% C 0.165 H 311.3°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#D18EFB
RGBrgb(209, 142, 251)
HSLhsl(277, 93%, 77%)
HSVhsv(277, 43%, 98%)
CMYKcmyk(16.7%, 43.4%, 0%, 1.6%)
CIE-LABlab(69.37, 44.52, -44.67)
CIE-LCHlch(69.37, 63.07, 314.91°)
OKLaboklab(75.41% 0.109 -0.124)
OKLCHoklch(75.41% 0.165 311.3)
XYZxyz(53.3770, 39.8673, 96.1314)
Luminance0.3987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18EFB #B8FB8E
analogous
#9B8EFB #D18EFB #FB8EEE
triadic
#D18EFB #FBD18E #8EFBD1
tetradic
#D18EFB #FB9B8E #B8FB8E #8EEEFB
square
#D18EFB #FB9B8E #B8FB8E #8EEEFB
split-complementary
#D18EFB #EEFB8E #8EFB9B
monochromatic
#A118F7 #B953F9 #D18EFB #E9C9FD #F3E1FE

Accessibility & contrast

On white

2.34
#D18EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#D18EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18EFB
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18EFB#FFFFFF#000000##000000
##D18EFB1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A6FF
Deuteranopia (green-blind)
#88ABF8
Tritanopia (blue-blind)
#CD9EB9
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d18efb;
/* rgb */ color: rgb(209, 142, 251);
/* oklch */ color: oklch(75.4% 0.165 311.3);
Tailwind
colors: {
  custom: {
    50: '#e1b0fd',
    500: '#d18efb',
    950: '#000000',
  },
}
SCSS
$custom: #d18efb;
$custom-light: #e1b0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d18efb",
  "rgb": {
    "r": 209,
    "g": 142,
    "b": 251
  },
  "hsl": {
    "h": 276.881,
    "s": 93.162,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75415,
    "c": 0.16509,
    "h": 311.3
  },
  "luminance": 0.39866
}

Semantic roles & 50–950 ramp

primary
#D18EFB
secondary
#E2F6D5
accent
#E60058
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151117
muted
#838085

Preview Lab

Preview with #D18EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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