#D798CE#D798CE

#D798CE is a light, moderate purple. Relative luminance 0.414; OKLCH L 75.8% C 0.103 H 331.6°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#D798CE
RGBrgb(215, 152, 206)
HSLhsl(309, 44%, 72%)
HSVhsv(309, 29%, 84%)
CMYKcmyk(0%, 29.3%, 4.2%, 15.7%)
CIE-LABlab(70.43, 32.14, -18.27)
CIE-LCHlch(70.43, 36.97, 330.39°)
OKLaboklab(75.77% 0.0908 -0.0491)
OKLCHoklch(75.77% 0.103 331.6)
XYZxyz(50.3924, 41.3617, 63.7097)
Luminance0.4136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798CE #98D7A1
analogous
#C198D7 #D798CE #D798AF
triadic
#D798CE #CED798 #98CED7
tetradic
#D798CE #D7C198 #98D7A1 #98AFD7
square
#D798CE #D7C198 #98D7A1 #98AFD7
split-complementary
#D798CE #AFD798 #98D7C1
monochromatic
#B044A1 #C66CB9 #D798CE #E8C4E3 #F6E9F5

Accessibility & contrast

On white

2.26
#D798CE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#D798CE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798CE
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798CE#FFFFFF#000000##000000
##D798CE1.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A7D0
Deuteranopia (green-blind)
#A6AFCC
Tritanopia (blue-blind)
#DC9BAB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d798ce;
/* rgb */ color: rgb(215, 152, 206);
/* oklch */ color: oklch(75.8% 0.103 331.6);
Tailwind
colors: {
  custom: {
    50: '#e4b7dd',
    500: '#d798ce',
    950: '#000000',
  },
}
SCSS
$custom: #d798ce;
$custom-light: #e4b7dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d798ce",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 206
  },
  "hsl": {
    "h": 308.571,
    "s": 44.056,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75772,
    "c": 0.10322,
    "h": 331.6
  },
  "luminance": 0.4136
}

Semantic roles & 50–950 ramp

primary
#D798CE
secondary
#DEEDE0
accent
#B7422E
background
#FEFBFD
surface
#FCF6FB
border
#D5D0D4
text
#161115
muted
#848083

Preview Lab

Preview with #D798CE

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

Preview Lab → · Contrast checker → · Palette generator →

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