#D797E2#D797E2

#D797E2 is a light, vivid purple. Relative luminance 0.421; OKLCH L 76.4% C 0.125 H 321.5°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#D797E2
RGBrgb(215, 151, 226)
HSLhsl(291, 56%, 74%)
HSVhsv(291, 33%, 89%)
CMYKcmyk(4.9%, 33.2%, 0%, 11.4%)
CIE-LABlab(70.92, 36.41, -28.53)
CIE-LCHlch(70.92, 46.26, 321.91°)
OKLaboklab(76.38% 0.0978 -0.0778)
OKLCHoklch(76.38% 0.125 321.5)
XYZxyz(52.8167, 42.0729, 77.2754)
Luminance0.4207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797E2 #A2E297
analogous
#B297E2 #D797E2 #E297C8
triadic
#D797E2 #E2D797 #97E2D7
tetradic
#D797E2 #E2B297 #A2E297 #97C8E2
square
#D797E2 #E2B297 #A2E297 #97C8E2
split-complementary
#D797E2 #C8E297 #97E2B2
monochromatic
#B238C7 #C567D5 #D797E2 #E9C7EF #F6E7F8

Accessibility & contrast

On white

2.23
#D797E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#D797E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797E2
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797E2#FFFFFF#000000##000000
##D797E21.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA9E5
Deuteranopia (green-blind)
#9EB0E0
Tritanopia (blue-blind)
#D99FB3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d797e2;
/* rgb */ color: rgb(215, 151, 226);
/* oklch */ color: oklch(76.4% 0.125 321.5);
Tailwind
colors: {
  custom: {
    50: '#e4b6eb',
    500: '#d797e2',
    950: '#000000',
  },
}
SCSS
$custom: #d797e2;
$custom-light: #e4b6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#d797e2",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 291.2,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.76383,
    "c": 0.12501,
    "h": 321.5
  },
  "luminance": 0.42071
}

Semantic roles & 50–950 ramp

primary
#D797E2
secondary
#DEF0DB
accent
#C42239
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D797E2

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

Preview Lab → · Contrast checker → · Palette generator →

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