#D798DF#D798DF

#D798DF is a light, vivid purple. Relative luminance 0.422; OKLCH L 76.4% C 0.120 H 322.7°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#D798DF
RGBrgb(215, 152, 223)
HSLhsl(293, 53%, 74%)
HSVhsv(293, 32%, 87%)
CMYKcmyk(3.6%, 31.8%, 0%, 12.5%)
CIE-LABlab(71.03, 35.29, -26.72)
CIE-LCHlch(71.03, 44.27, 322.87°)
OKLaboklab(76.43% 0.0956 -0.0727)
OKLCHoklch(76.43% 0.12 322.7)
XYZxyz(52.5703, 42.2329, 75.1802)
Luminance0.4223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798DF #A0DF98
analogous
#B398DF #D798DF #DF98C3
triadic
#D798DF #DFD798 #98DFD7
tetradic
#D798DF #DFB398 #A0DF98 #98C3DF
square
#D798DF #DFB398 #A0DF98 #98C3DF
split-complementary
#D798DF #C3DF98 #98DFB3
monochromatic
#B23CC1 #C569D0 #D798DF #E9C7EE #F6E8F8

Accessibility & contrast

On white

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

On black

9.45
#D798DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798DF
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798DF#FFFFFF#000000##000000
##D798DF1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A9E2
Deuteranopia (green-blind)
#A0B0DD
Tritanopia (blue-blind)
#D99FB2
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d798df;
/* rgb */ color: rgb(215, 152, 223);
/* oklch */ color: oklch(76.4% 0.120 322.7);
Tailwind
colors: {
  custom: {
    50: '#e4b7e9',
    500: '#d798df',
    950: '#000000',
  },
}
SCSS
$custom: #d798df;
$custom-light: #e4b7e9;
$custom-dark: #000000;
JSON
{
  "hex": "#d798df",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 223
  },
  "hsl": {
    "h": 293.239,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.76429,
    "c": 0.12009,
    "h": 322.7
  },
  "luminance": 0.42231
}

Semantic roles & 50–950 ramp

primary
#D798DF
secondary
#DEEFDC
accent
#C02537
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D798DF

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

Preview Lab → · Contrast checker → · Palette generator →

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