#D798ED#D798ED

#D798ED is a light, vivid purple. Relative luminance 0.430; OKLCH L 77.0% C 0.135 H 317.1°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#D798ED
RGBrgb(215, 152, 237)
HSLhsl(284, 70%, 76%)
HSVhsv(284, 36%, 93%)
CMYKcmyk(9.3%, 35.9%, 0%, 7.1%)
CIE-LABlab(71.57, 38.03, -33.56)
CIE-LCHlch(71.57, 50.72, 318.57°)
OKLaboklab(77.01% 0.099 -0.0921)
OKLCHoklch(77.01% 0.135 317.1)
XYZxyz(54.5364, 43.0193, 85.5350)
Luminance0.4302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798ED #AEED98
analogous
#AD98ED #D798ED #ED98D9
triadic
#D798ED #EDD798 #98EDD7
tetradic
#D798ED #EDAD98 #AEED98 #98D9ED
square
#D798ED #EDAD98 #AEED98 #98D9ED
split-complementary
#D798ED #D9ED98 #98EDAD
monochromatic
#AF30DB #C364E4 #D798ED #EBCCF6 #F5E5FA

Accessibility & contrast

On white

2.19
#D798ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#D798ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798ED
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798ED#FFFFFF#000000##000000
##D798ED1.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CABF0
Deuteranopia (green-blind)
#9BB1EA
Tritanopia (blue-blind)
#D7A3B8
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d798ed;
/* rgb */ color: rgb(215, 152, 237);
/* oklch */ color: oklch(77.0% 0.135 317.1);
Tailwind
colors: {
  custom: {
    50: '#e4b7f3',
    500: '#d798ed',
    950: '#000000',
  },
}
SCSS
$custom: #d798ed;
$custom-light: #e4b7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#d798ed",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 237
  },
  "hsl": {
    "h": 284.471,
    "s": 70.248,
    "l": 76.275
  },
  "oklch": {
    "l": 0.77013,
    "c": 0.13522,
    "h": 317.1
  },
  "luminance": 0.43018
}

Semantic roles & 50–950 ramp

primary
#D798ED
secondary
#DFF2D9
accent
#D21345
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D798ED

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

Preview Lab → · Contrast checker → · Palette generator →

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