#D398EB#D398EB

#D398EB is a light, vivid purple. Relative luminance 0.423; OKLCH L 76.5% C 0.131 H 315.8°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#D398EB
RGBrgb(211, 152, 235)
HSLhsl(283, 67%, 76%)
HSVhsv(283, 35%, 92%)
CMYKcmyk(10.2%, 35.3%, 0%, 7.8%)
CIE-LABlab(71.08, 36.42, -33.25)
CIE-LCHlch(71.08, 49.32, 317.60°)
OKLaboklab(76.53% 0.094 -0.0913)
OKLCHoklch(76.53% 0.131 315.8)
XYZxyz(53.0853, 42.3047, 83.9503)
Luminance0.4230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D398EB #B0EB98
analogous
#A998EB #D398EB #EB98D9
triadic
#D398EB #EBD398 #98EBD3
tetradic
#D398EB #EBA998 #B0EB98 #98D9EB
square
#D398EB #EBA998 #B0EB98 #98D9EB
split-complementary
#D398EB #D9EB98 #98EBA9
monochromatic
#A732D7 #BD65E1 #D398EB #E9CBF5 #F4E5FA

Accessibility & contrast

On white

2.22
#D398EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#D398EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D398EB
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D398EB#FFFFFF#000000##000000
##D398EB1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAAEE
Deuteranopia (green-blind)
#99B0E8
Tritanopia (blue-blind)
#D2A3B7
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d398eb;
/* rgb */ color: rgb(211, 152, 235);
/* oklch */ color: oklch(76.5% 0.131 315.8);
Tailwind
colors: {
  custom: {
    50: '#e1b7f1',
    500: '#d398eb',
    950: '#000000',
  },
}
SCSS
$custom: #d398eb;
$custom-light: #e1b7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d398eb",
  "rgb": {
    "r": 211,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 282.651,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76525,
    "c": 0.13102,
    "h": 315.8
  },
  "luminance": 0.42304
}

Semantic roles & 50–950 ramp

primary
#D398EB
secondary
#E0F2D9
accent
#CF164C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #D398EB

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

Preview Lab → · Contrast checker → · Palette generator →

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