#D797DF#D797DF

#D797DF is a light, vivid purple. Relative luminance 0.419; OKLCH L 76.3% C 0.122 H 322.8°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#D797DF
RGBrgb(215, 151, 223)
HSLhsl(293, 53%, 73%)
HSVhsv(293, 32%, 87%)
CMYKcmyk(3.6%, 32.3%, 0%, 12.5%)
CIE-LABlab(70.81, 35.83, -27.06)
CIE-LCHlch(70.81, 44.90, 322.94°)
OKLaboklab(76.26% 0.0971 -0.0737)
OKLCHoklch(76.26% 0.122 322.8)
XYZxyz(52.4087, 41.9096, 75.1264)
Luminance0.4191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797DF #9FDF97
analogous
#B397DF #D797DF #DF97C3
triadic
#D797DF #DFD797 #97DFD7
tetradic
#D797DF #DFB397 #9FDF97 #97C3DF
square
#D797DF #DFB397 #9FDF97 #97C3DF
split-complementary
#D797DF #C3DF97 #97DFB3
monochromatic
#B23BC0 #C568D1 #D797DF #E9C6ED #F6E8F8

Accessibility & contrast

On white

2.24
#D797DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#D797DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797DF
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797DF#FFFFFF#000000##000000
##D797DF1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A9E2
Deuteranopia (green-blind)
#9FB0DD
Tritanopia (blue-blind)
#DA9EB1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d797df;
/* rgb */ color: rgb(215, 151, 223);
/* oklch */ color: oklch(76.3% 0.122 322.8);
Tailwind
colors: {
  custom: {
    50: '#e4b6e9',
    500: '#d797df',
    950: '#000000',
  },
}
SCSS
$custom: #d797df;
$custom-light: #e4b6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#d797df",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 293.333,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.7626,
    "c": 0.12185,
    "h": 322.8
  },
  "luminance": 0.41908
}

Semantic roles & 50–950 ramp

primary
#D797DF
secondary
#DEEFDC
accent
#C02536
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D797DF

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

Preview Lab → · Contrast checker → · Palette generator →

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