#D798FE#D798FE

#D798FE is a light, vivid violet. Relative luminance 0.441; OKLCH L 77.8% C 0.154 H 311.6°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#D798FE
RGBrgb(215, 152, 254)
HSLhsl(277, 98%, 80%)
HSVhsv(277, 40%, 100%)
CMYKcmyk(15.4%, 40.2%, 0%, 0.4%)
CIE-LABlab(72.27, 41.52, -41.73)
CIE-LCHlch(72.27, 58.86, 314.86°)
OKLaboklab(77.77% 0.1026 -0.1155)
OKLCHoklch(77.77% 0.154 311.6)
XYZxyz(57.1388, 44.0603, 99.2412)
Luminance0.4406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798FE #BFFE98
analogous
#A498FE #D798FE #FE98F2
triadic
#D798FE #FED798 #98FED7
tetradic
#D798FE #FEA498 #BFFE98 #98F2FE
square
#D798FE #FEA498 #BFFE98 #98F2FE
split-complementary
#D798FE #F2FE98 #98FEA4
monochromatic
#A81FFD #BF5BFD #D798FE #EFD5FF #F3E1FF

Accessibility & contrast

On white

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

On black

9.81
#D798FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798FE
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798FE#FFFFFF#000000##000000
##D798FE1.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84AEFF
Deuteranopia (green-blind)
#93B3FB
Tritanopia (blue-blind)
#D3A7BF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d798fe;
/* rgb */ color: rgb(215, 152, 254);
/* oklch */ color: oklch(77.8% 0.154 311.6);
Tailwind
colors: {
  custom: {
    50: '#e5b7ff',
    500: '#d798fe',
    950: '#000000',
  },
}
SCSS
$custom: #d798fe;
$custom-light: #e5b7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d798fe",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 254
  },
  "hsl": {
    "h": 277.059,
    "s": 98.077,
    "l": 79.608
  },
  "oklch": {
    "l": 0.77772,
    "c": 0.15444,
    "h": 311.6
  },
  "luminance": 0.44059
}

Semantic roles & 50–950 ramp

primary
#D798FE
secondary
#E1F7D4
accent
#E60058
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D798FE

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

Preview Lab → · Contrast checker → · Palette generator →

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