#D798FA#D798FA

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

Color values

HEX#D798FA
RGBrgb(215, 152, 250)
HSLhsl(279, 91%, 79%)
HSVhsv(279, 39%, 98%)
CMYKcmyk(14%, 39.2%, 0%, 2%)
CIE-LABlab(72.10, 40.69, -39.82)
CIE-LCHlch(72.10, 56.93, 315.62°)
OKLaboklab(77.59% 0.1018 -0.11)
OKLCHoklch(77.59% 0.15 312.8)
XYZxyz(56.5050, 43.8067, 95.9029)
Luminance0.4381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798FA #BBFA98
analogous
#A698FA #D798FA #FA98EC
triadic
#D798FA #FAD798 #98FAD7
tetradic
#D798FA #FAA698 #BBFA98 #98ECFA
square
#D798FA #FAA698 #BBFA98 #98ECFA
split-complementary
#D798FA #ECFA98 #98FAA6
monochromatic
#AA23F4 #C05EF7 #D798FA #EED2FD #F4E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D798FA#FFFFFF#000000##000000
##D798FA1.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)
#86ADFE
Deuteranopia (green-blind)
#95B2F7
Tritanopia (blue-blind)
#D4A6BD
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d798fa;
/* rgb */ color: rgb(215, 152, 250);
/* oklch */ color: oklch(77.6% 0.150 312.8);
Tailwind
colors: {
  custom: {
    50: '#e5b7fc',
    500: '#d798fa',
    950: '#000000',
  },
}
SCSS
$custom: #d798fa;
$custom-light: #e5b7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d798fa",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 278.571,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.77589,
    "c": 0.14986,
    "h": 312.8
  },
  "luminance": 0.43806
}

Semantic roles & 50–950 ramp

primary
#D798FA
secondary
#E1F6D5
accent
#E60052
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D798FA

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

Preview Lab → · Contrast checker → · Palette generator →

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