#D798FC#D798FC

#D798FC is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.7% C 0.152 H 312.2°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#D798FC
RGBrgb(215, 152, 252)
HSLhsl(278, 94%, 79%)
HSVhsv(278, 40%, 99%)
CMYKcmyk(14.7%, 39.7%, 0%, 1.2%)
CIE-LABlab(72.18, 41.10, -40.77)
CIE-LCHlch(72.18, 57.89, 315.23°)
OKLaboklab(77.68% 0.1022 -0.1127)
OKLCHoklch(77.68% 0.152 312.2)
XYZxyz(56.8203, 43.9328, 97.5632)
Luminance0.4393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798FC #BDFC98
analogous
#A598FC #D798FC #FC98EF
triadic
#D798FC #FCD798 #98FCD7
tetradic
#D798FC #FCA598 #BDFC98 #98EFFC
square
#D798FC #FCA598 #BDFC98 #98EFFC
split-complementary
#D798FC #EFFC98 #98FCA5
monochromatic
#A921F9 #C05DFA #D798FC #EED3FE #F3E1FE

Accessibility & contrast

On white

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

On black

9.79
#D798FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798FC
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798FC#FFFFFF#000000##000000
##D798FC1.002.159.799.79
#FFFFFF2.151.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d798fc;
/* rgb */ color: rgb(215, 152, 252);
/* oklch */ color: oklch(77.7% 0.152 312.2);
Tailwind
colors: {
  custom: {
    50: '#e5b7fd',
    500: '#d798fc',
    950: '#000000',
  },
}
SCSS
$custom: #d798fc;
$custom-light: #e5b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d798fc",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 277.8,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.7768,
    "c": 0.15215,
    "h": 312.2
  },
  "luminance": 0.43932
}

Semantic roles & 50–950 ramp

primary
#D798FC
secondary
#E1F6D5
accent
#E60055
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D798FC

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

Preview Lab → · Contrast checker → · Palette generator →

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