#D797FC#D797FC

#D797FC is a light, vivid violet. Relative luminance 0.436; OKLCH L 77.5% C 0.154 H 312.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#D797FC
RGBrgb(215, 151, 252)
HSLhsl(278, 94%, 79%)
HSVhsv(278, 40%, 99%)
CMYKcmyk(14.7%, 40.1%, 0%, 1.2%)
CIE-LABlab(71.97, 41.64, -41.11)
CIE-LCHlch(71.97, 58.51, 315.36°)
OKLaboklab(77.52% 0.1036 -0.1137)
OKLCHoklch(77.52% 0.154 312.3)
XYZxyz(56.6586, 43.6096, 97.5093)
Luminance0.4361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797FC #BCFC97
analogous
#A597FC #D797FC #FC97EF
triadic
#D797FC #FCD797 #97FCD7
tetradic
#D797FC #FCA597 #BCFC97 #97EFFC
square
#D797FC #FCA597 #BCFC97 #97EFFC
split-complementary
#D797FC #EFFC97 #97FCA5
monochromatic
#A920F9 #C05CFA #D797FC #EED2FE #F4E1FE

Accessibility & contrast

On white

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

On black

9.72
#D797FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797FC
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797FC#FFFFFF#000000##000000
##D797FC1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#94B2F9
Tritanopia (blue-blind)
#D4A5BE
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d797fc;
/* rgb */ color: rgb(215, 151, 252);
/* oklch */ color: oklch(77.5% 0.154 312.3);
Tailwind
colors: {
  custom: {
    50: '#e5b6fd',
    500: '#d797fc',
    950: '#000000',
  },
}
SCSS
$custom: #d797fc;
$custom-light: #e5b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d797fc",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 278.02,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.77517,
    "c": 0.1538,
    "h": 312.3
  },
  "luminance": 0.43609
}

Semantic roles & 50–950 ramp

primary
#D797FC
secondary
#E1F6D5
accent
#E60054
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D797FC

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

Preview Lab → · Contrast checker → · Palette generator →

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