#D797FF#D797FF

#D797FF is a light, vivid violet. Relative luminance 0.438; OKLCH L 77.7% C 0.157 H 311.5°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#D797FF
RGBrgb(215, 151, 255)
HSLhsl(277, 100%, 80%)
HSVhsv(277, 41%, 100%)
CMYKcmyk(15.7%, 40.8%, 0%, 0%)
CIE-LABlab(72.10, 42.26, -42.54)
CIE-LCHlch(72.10, 59.97, 314.81°)
OKLaboklab(77.66% 0.1041 -0.1178)
OKLCHoklch(77.66% 0.157 311.5)
XYZxyz(57.1378, 43.8013, 100.0329)
Luminance0.4380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797FF #BFFF97
analogous
#A397FF #D797FF #FF97F3
triadic
#D797FF #FFD797 #97FFD7
tetradic
#D797FF #FFA397 #BFFF97 #97F3FF
square
#D797FF #FFA397 #BFFF97 #97F3FF
split-complementary
#D797FF #F3FF97 #97FFA3
monochromatic
#A81DFF #BF5AFF #D797FF #EFD4FF #F3E0FF

Accessibility & contrast

On white

2.15
#D797FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#D797FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797FF
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797FF#FFFFFF#000000##000000
##D797FF1.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ADFF
Deuteranopia (green-blind)
#92B2FC
Tritanopia (blue-blind)
#D3A6BF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d797ff;
/* rgb */ color: rgb(215, 151, 255);
/* oklch */ color: oklch(77.7% 0.157 311.5);
Tailwind
colors: {
  custom: {
    50: '#e5b6ff',
    500: '#d797ff',
    950: '#000000',
  },
}
SCSS
$custom: #d797ff;
$custom-light: #e5b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d797ff",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 276.923,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.77656,
    "c": 0.15723,
    "h": 311.5
  },
  "luminance": 0.438
}

Semantic roles & 50–950 ramp

primary
#D797FF
secondary
#E1F7D4
accent
#E60058
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D797FF

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

Preview Lab → · Contrast checker → · Palette generator →

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