#D797FD#D797FD

#D797FD is a light, vivid violet. Relative luminance 0.437; OKLCH L 77.6% C 0.155 H 312.0°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#D797FD
RGBrgb(215, 151, 253)
HSLhsl(278, 96%, 79%)
HSVhsv(278, 40%, 99%)
CMYKcmyk(15%, 40.3%, 0%, 0.8%)
CIE-LABlab(72.01, 41.84, -41.59)
CIE-LCHlch(72.01, 59.00, 315.18°)
OKLaboklab(77.56% 0.1038 -0.1151)
OKLCHoklch(77.56% 0.155 312)
XYZxyz(56.8175, 43.6732, 98.3461)
Luminance0.4367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797FD #BDFD97
analogous
#A497FD #D797FD #FD97F0
triadic
#D797FD #FDD797 #97FDD7
tetradic
#D797FD #FDA497 #BDFD97 #97F0FD
square
#D797FD #FDA497 #BDFD97 #97F0FD
split-complementary
#D797FD #F0FD97 #97FDA4
monochromatic
#A91FFB #C05BFC #D797FD #EED3FE #F3E1FE

Accessibility & contrast

On white

2.16
#D797FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#D797FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797FD
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797FD#FFFFFF#000000##000000
##D797FD1.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#93B2FA
Tritanopia (blue-blind)
#D3A6BE
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d797fd;
/* rgb */ color: rgb(215, 151, 253);
/* oklch */ color: oklch(77.6% 0.155 312.0);
Tailwind
colors: {
  custom: {
    50: '#e5b6fe',
    500: '#d797fd',
    950: '#000000',
  },
}
SCSS
$custom: #d797fd;
$custom-light: #e5b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d797fd",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 277.647,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77563,
    "c": 0.15494,
    "h": 312
  },
  "luminance": 0.43672
}

Semantic roles & 50–950 ramp

primary
#D797FD
secondary
#E1F7D4
accent
#E60056
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D797FD

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

Preview Lab → · Contrast checker → · Palette generator →

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