#D798E2#D798E2

#D798E2 is a light, vivid purple. Relative luminance 0.424; OKLCH L 76.6% C 0.123 H 321.4°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#D798E2
RGBrgb(215, 152, 226)
HSLhsl(291, 56%, 74%)
HSVhsv(291, 33%, 89%)
CMYKcmyk(4.9%, 32.7%, 0%, 11.4%)
CIE-LABlab(71.14, 35.87, -28.19)
CIE-LCHlch(71.14, 45.62, 321.83°)
OKLaboklab(76.55% 0.0964 -0.0769)
OKLCHoklch(76.55% 0.123 321.4)
XYZxyz(52.9784, 42.3961, 77.3293)
Luminance0.4239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798E2 #A3E298
analogous
#B298E2 #D798E2 #E298C8
triadic
#D798E2 #E2D798 #98E2D7
tetradic
#D798E2 #E2B298 #A3E298 #98C8E2
square
#D798E2 #E2B298 #A3E298 #98C8E2
split-complementary
#D798E2 #C8E298 #98E2B2
monochromatic
#B238C7 #C468D5 #D798E2 #EAC8EF #F6E7F8

Accessibility & contrast

On white

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

On black

9.48
#D798E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798E2
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798E2#FFFFFF#000000##000000
##D798E21.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90AAE5
Deuteranopia (green-blind)
#9FB1E0
Tritanopia (blue-blind)
#D9A0B3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d798e2;
/* rgb */ color: rgb(215, 152, 226);
/* oklch */ color: oklch(76.6% 0.123 321.4);
Tailwind
colors: {
  custom: {
    50: '#e4b7eb',
    500: '#d798e2',
    950: '#000000',
  },
}
SCSS
$custom: #d798e2;
$custom-light: #e4b7eb;
$custom-dark: #000000;
JSON
{
  "hex": "#d798e2",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 226
  },
  "hsl": {
    "h": 291.081,
    "s": 56.061,
    "l": 74.118
  },
  "oklch": {
    "l": 0.76551,
    "c": 0.12326,
    "h": 321.4
  },
  "luminance": 0.42395
}

Semantic roles & 50–950 ramp

primary
#D798E2
secondary
#DEF0DB
accent
#C4223A
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798E2

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

Preview Lab → · Contrast checker → · Palette generator →

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