#D798E4#D798E4

#D798E4 is a light, vivid purple. Relative luminance 0.425; OKLCH L 76.6% C 0.125 H 320.6°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#D798E4
RGBrgb(215, 152, 228)
HSLhsl(290, 58%, 75%)
HSVhsv(290, 33%, 89%)
CMYKcmyk(5.7%, 33.3%, 0%, 10.6%)
CIE-LABlab(71.22, 36.26, -29.17)
CIE-LCHlch(71.22, 46.54, 321.18°)
OKLaboklab(76.63% 0.0969 -0.0796)
OKLCHoklch(76.63% 0.125 320.6)
XYZxyz(53.2544, 42.5065, 78.7830)
Luminance0.4250 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798E4 #A5E498
analogous
#B198E4 #D798E4 #E498CB
triadic
#D798E4 #E4D798 #98E4D7
tetradic
#D798E4 #E4B198 #A5E498 #98CBE4
square
#D798E4 #E4B198 #A5E498 #98CBE4
split-complementary
#D798E4 #CBE498 #98E4B1
monochromatic
#B137CB #C468D7 #D798E4 #EAC8F1 #F6E7F9

Accessibility & contrast

On white

2.21
#D798E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#D798E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798E4
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798E4#FFFFFF#000000##000000
##D798E41.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAAE7
Deuteranopia (green-blind)
#9EB1E2
Tritanopia (blue-blind)
#D9A0B4
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d798e4;
/* rgb */ color: rgb(215, 152, 228);
/* oklch */ color: oklch(76.6% 0.125 320.6);
Tailwind
colors: {
  custom: {
    50: '#e4b7ec',
    500: '#d798e4',
    950: '#000000',
  },
}
SCSS
$custom: #d798e4;
$custom-light: #e4b7ec;
$custom-dark: #000000;
JSON
{
  "hex": "#d798e4",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 228
  },
  "hsl": {
    "h": 289.737,
    "s": 58.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.76633,
    "c": 0.12539,
    "h": 320.6
  },
  "luminance": 0.42505
}

Semantic roles & 50–950 ramp

primary
#D798E4
secondary
#DFF0DB
accent
#C61F3C
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798E4

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

Preview Lab → · Contrast checker → · Palette generator →

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