#D798FD#D798FD

#D798FD is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.7% C 0.153 H 311.9°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#D798FD
RGBrgb(215, 152, 253)
HSLhsl(277, 96%, 79%)
HSVhsv(277, 40%, 99%)
CMYKcmyk(15%, 39.9%, 0%, 0.8%)
CIE-LABlab(72.23, 41.31, -41.25)
CIE-LCHlch(72.23, 58.38, 315.04°)
OKLaboklab(77.73% 0.1024 -0.1141)
OKLCHoklch(77.73% 0.153 311.9)
XYZxyz(56.9791, 43.9964, 98.4000)
Luminance0.4400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798FD #BEFD98
analogous
#A598FD #D798FD #FD98F0
triadic
#D798FD #FDD798 #98FDD7
tetradic
#D798FD #FDA598 #BEFD98 #98F0FD
square
#D798FD #FDA598 #BEFD98 #98F0FD
split-complementary
#D798FD #F0FD98 #98FDA5
monochromatic
#A820FB #C05CFC #D798FD #EED4FE #F3E1FE

Accessibility & contrast

On white

2.14
#D798FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#D798FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798FD
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798FD#FFFFFF#000000##000000
##D798FD1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AEFF
Deuteranopia (green-blind)
#94B3FA
Tritanopia (blue-blind)
#D3A7BF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d798fd;
/* rgb */ color: rgb(215, 152, 253);
/* oklch */ color: oklch(77.7% 0.153 311.9);
Tailwind
colors: {
  custom: {
    50: '#e5b7fe',
    500: '#d798fd',
    950: '#000000',
  },
}
SCSS
$custom: #d798fd;
$custom-light: #e5b7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d798fd",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 277.426,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77726,
    "c": 0.15329,
    "h": 311.9
  },
  "luminance": 0.43995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D798FD

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

Preview Lab → · Contrast checker → · Palette generator →

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