#D797FE#D797FE

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

Color values

HEX#D797FE
RGBrgb(215, 151, 254)
HSLhsl(277, 98%, 79%)
HSVhsv(277, 41%, 100%)
CMYKcmyk(15.4%, 40.6%, 0%, 0.4%)
CIE-LABlab(72.05, 42.05, -42.06)
CIE-LCHlch(72.05, 59.48, 314.99°)
OKLaboklab(77.61% 0.1039 -0.1164)
OKLCHoklch(77.61% 0.156 311.8)
XYZxyz(56.9772, 43.7370, 99.1873)
Luminance0.4374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797FE #BEFE97
analogous
#A497FE #D797FE #FE97F1
triadic
#D797FE #FED797 #97FED7
tetradic
#D797FE #FEA497 #BEFE97 #97F1FE
square
#D797FE #FEA497 #BEFE97 #97F1FE
split-complementary
#D797FE #F1FE97 #97FEA4
monochromatic
#A81EFD #C05AFD #D797FE #EED4FF #F3E1FF

Accessibility & contrast

On white

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

On black

9.75
#D797FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797FE
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797FE#FFFFFF#000000##000000
##D797FE1.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#93B2FB
Tritanopia (blue-blind)
#D3A6BF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d797fe;
/* rgb */ color: rgb(215, 151, 254);
/* oklch */ color: oklch(77.6% 0.156 311.8);
Tailwind
colors: {
  custom: {
    50: '#e5b6ff',
    500: '#d797fe',
    950: '#000000',
  },
}
SCSS
$custom: #d797fe;
$custom-light: #e5b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d797fe",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 277.282,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77609,
    "c": 0.15609,
    "h": 311.8
  },
  "luminance": 0.43736
}

Semantic roles & 50–950 ramp

primary
#D797FE
secondary
#E1F7D4
accent
#E60057
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D797FE

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

Preview Lab → · Contrast checker → · Palette generator →

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