#D798FB#D798FB

#D798FB is a light, vivid violet. Relative luminance 0.439; OKLCH L 77.6% C 0.151 H 312.5°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#D798FB
RGBrgb(215, 152, 251)
HSLhsl(278, 93%, 79%)
HSVhsv(278, 39%, 98%)
CMYKcmyk(14.3%, 39.4%, 0%, 1.6%)
CIE-LABlab(72.14, 40.89, -40.30)
CIE-LCHlch(72.14, 57.41, 315.42°)
OKLaboklab(77.63% 0.102 -0.1114)
OKLCHoklch(77.63% 0.151 312.5)
XYZxyz(56.6622, 43.8696, 96.7308)
Luminance0.4387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D798FB #BCFB98
analogous
#A698FB #D798FB #FB98ED
triadic
#D798FB #FBD798 #98FBD7
tetradic
#D798FB #FBA698 #BCFB98 #98EDFB
square
#D798FB #FBA698 #BCFB98 #98EDFB
split-complementary
#D798FB #EDFB98 #98FBA6
monochromatic
#A922F6 #C05DF9 #D798FB #EED3FD #F4E2FE

Accessibility & contrast

On white

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

On black

9.77
#D798FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D798FB
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D798FB#FFFFFF#000000##000000
##D798FB1.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ADFF
Deuteranopia (green-blind)
#95B2F8
Tritanopia (blue-blind)
#D4A6BE
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #d798fb;
/* rgb */ color: rgb(215, 152, 251);
/* oklch */ color: oklch(77.6% 0.151 312.5);
Tailwind
colors: {
  custom: {
    50: '#e5b7fd',
    500: '#d798fb',
    950: '#000000',
  },
}
SCSS
$custom: #d798fb;
$custom-light: #e5b7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d798fb",
  "rgb": {
    "r": 215,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 278.182,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.77634,
    "c": 0.151,
    "h": 312.5
  },
  "luminance": 0.43869
}

Semantic roles & 50–950 ramp

primary
#D798FB
secondary
#E1F6D5
accent
#E60053
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D798FB

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

Preview Lab → · Contrast checker → · Palette generator →

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