#D797FB#D797FB

#D797FB is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.5% C 0.153 H 312.6°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#D797FB
RGBrgb(215, 151, 251)
HSLhsl(278, 93%, 79%)
HSVhsv(278, 40%, 98%)
CMYKcmyk(14.3%, 39.8%, 0%, 1.6%)
CIE-LABlab(71.92, 41.43, -40.63)
CIE-LCHlch(71.92, 58.03, 315.55°)
OKLaboklab(77.47% 0.1034 -0.1123)
OKLCHoklch(77.47% 0.153 312.6)
XYZxyz(56.5006, 43.5464, 96.6770)
Luminance0.4355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D797FB #BBFB97
analogous
#A597FB #D797FB #FB97ED
triadic
#D797FB #FBD797 #97FBD7
tetradic
#D797FB #FBA597 #BBFB97 #97EDFB
square
#D797FB #FBA597 #BBFB97 #97EDFB
split-complementary
#D797FB #EDFB97 #97FBA5
monochromatic
#AA21F6 #C05CF9 #D797FB #EED2FD #F4E2FE

Accessibility & contrast

On white

2.16
#D797FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#D797FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D797FB
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D797FB#FFFFFF#000000##000000
##D797FB1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ADFF
Deuteranopia (green-blind)
#94B2F8
Tritanopia (blue-blind)
#D4A5BD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d797fb;
/* rgb */ color: rgb(215, 151, 251);
/* oklch */ color: oklch(77.5% 0.153 312.6);
Tailwind
colors: {
  custom: {
    50: '#e5b6fd',
    500: '#d797fb',
    950: '#000000',
  },
}
SCSS
$custom: #d797fb;
$custom-light: #e5b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d797fb",
  "rgb": {
    "r": 215,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 278.4,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.77471,
    "c": 0.15266,
    "h": 312.6
  },
  "luminance": 0.43545
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D797FB

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

Preview Lab → · Contrast checker → · Palette generator →

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