#D797FA#D797FA

#D797FA is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.4% C 0.152 H 312.9°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#D797FA
RGBrgb(215, 151, 250)
HSLhsl(279, 91%, 79%)
HSVhsv(279, 40%, 98%)
CMYKcmyk(14%, 39.6%, 0%, 2%)
CIE-LABlab(71.88, 41.22, -40.16)
CIE-LCHlch(71.88, 57.55, 315.75°)
OKLaboklab(77.43% 0.1032 -0.111)
OKLCHoklch(77.43% 0.152 312.9)
XYZxyz(56.3434, 43.4835, 95.8490)
Luminance0.4348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797FA #BAFA97
analogous
#A597FA #D797FA #FA97EB
triadic
#D797FA #FAD797 #97FAD7
tetradic
#D797FA #FAA597 #BAFA97 #97EBFA
square
#D797FA #FAA597 #BAFA97 #97EBFA
split-complementary
#D797FA #EBFA97 #97FAA5
monochromatic
#AA22F4 #C15DF7 #D797FA #EDD1FD #F4E2FE

Accessibility & contrast

On white

2.17
#D797FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#D797FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797FA
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797FA#FFFFFF#000000##000000
##D797FA1.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ADFE
Deuteranopia (green-blind)
#94B2F7
Tritanopia (blue-blind)
#D4A5BD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d797fa;
/* rgb */ color: rgb(215, 151, 250);
/* oklch */ color: oklch(77.4% 0.152 312.9);
Tailwind
colors: {
  custom: {
    50: '#e5b6fc',
    500: '#d797fa',
    950: '#000000',
  },
}
SCSS
$custom: #d797fa;
$custom-light: #e5b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d797fa",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 278.788,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.77425,
    "c": 0.15153,
    "h": 312.9
  },
  "luminance": 0.43482
}

Semantic roles & 50–950 ramp

primary
#D797FA
secondary
#E1F6D5
accent
#E60051
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D797FA

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

Preview Lab → · Contrast checker → · Palette generator →

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