#D18AFE#D18AFE

#D18AFE is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.9% C 0.175 H 311.0°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#D18AFE
RGBrgb(209, 138, 254)
HSLhsl(277, 98%, 77%)
HSVhsv(277, 46%, 100%)
CMYKcmyk(17.7%, 45.7%, 0%, 0.4%)
CIE-LABlab(68.67, 47.28, -47.41)
CIE-LCHlch(68.67, 66.96, 314.92°)
OKLaboklab(74.93% 0.1149 -0.132)
OKLCHoklch(74.93% 0.175 311)
XYZxyz(53.2692, 38.8890, 98.4469)
Luminance0.3889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18AFE #B7FE8A
analogous
#978AFE #D18AFE #FE8AF1
triadic
#D18AFE #FED18A #8AFED1
tetradic
#D18AFE #FE978A #B7FE8A #8AF1FE
square
#D18AFE #FE978A #B7FE8A #8AF1FE
split-complementary
#D18AFE #F1FE8A #8AFE97
monochromatic
#A111FD #B94DFD #D18AFE #E9C7FF #F3E1FF

Accessibility & contrast

On white

2.39
#D18AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#D18AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18AFE
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18AFE#FFFFFF#000000##000000
##D18AFE1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A4FF
Deuteranopia (green-blind)
#83A9FB
Tritanopia (blue-blind)
#CC9CB8
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d18afe;
/* rgb */ color: rgb(209, 138, 254);
/* oklch */ color: oklch(74.9% 0.175 311.0);
Tailwind
colors: {
  custom: {
    50: '#e1aeff',
    500: '#d18afe',
    950: '#000000',
  },
}
SCSS
$custom: #d18afe;
$custom-light: #e1aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#d18afe",
  "rgb": {
    "r": 209,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 276.724,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74933,
    "c": 0.17495,
    "h": 311
  },
  "luminance": 0.38888
}

Semantic roles & 50–950 ramp

primary
#D18AFE
secondary
#E2F7D4
accent
#E60059
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#151018
muted
#847F86

Preview Lab

Preview with #D18AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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