#D796EB#D796EB

#D796EB is a light, vivid purple. Relative luminance 0.423; OKLCH L 76.6% C 0.136 H 318.0°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#D796EB
RGBrgb(215, 150, 235)
HSLhsl(286, 68%, 75%)
HSVhsv(286, 36%, 92%)
CMYKcmyk(8.5%, 36.2%, 0%, 7.8%)
CIE-LABlab(71.05, 38.71, -33.27)
CIE-LCHlch(71.05, 51.04, 319.32°)
OKLaboklab(76.6% 0.1014 -0.0913)
OKLCHoklch(76.6% 0.136 318)
XYZxyz(53.9240, 42.2593, 83.8974)
Luminance0.4226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796EB #AAEB96
analogous
#AC96EB #D796EB #EB96D5
triadic
#D796EB #EBD796 #96EBD7
tetradic
#D796EB #EBAC96 #AAEB96 #96D5EB
square
#D796EB #EBAC96 #AAEB96 #96D5EB
split-complementary
#D796EB #D5EB96 #96EBAC
monochromatic
#B02FD7 #C363E1 #D796EB #EBC9F5 #F5E5FA

Accessibility & contrast

On white

2.22
#D796EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#D796EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796EB
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796EB#FFFFFF#000000##000000
##D796EB1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AAAEE
Deuteranopia (green-blind)
#9AB0E8
Tritanopia (blue-blind)
#D7A0B6
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d796eb;
/* rgb */ color: rgb(215, 150, 235);
/* oklch */ color: oklch(76.6% 0.136 318.0);
Tailwind
colors: {
  custom: {
    50: '#e4b6f1',
    500: '#d796eb',
    950: '#000000',
  },
}
SCSS
$custom: #d796eb;
$custom-light: #e4b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d796eb",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 235
  },
  "hsl": {
    "h": 285.882,
    "s": 68,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76595,
    "c": 0.13645,
    "h": 318
  },
  "luminance": 0.42258
}

Semantic roles & 50–950 ramp

primary
#D796EB
secondary
#DFF2D9
accent
#D01641
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D796EB

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

Preview Lab → · Contrast checker → · Palette generator →

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