#D796EF#D796EF

#D796EF is a light, vivid purple. Relative luminance 0.425; OKLCH L 76.8% C 0.141 H 316.6°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#D796EF
RGBrgb(215, 150, 239)
HSLhsl(284, 74%, 76%)
HSVhsv(284, 37%, 94%)
CMYKcmyk(10%, 37.2%, 0%, 6.3%)
CIE-LABlab(71.21, 39.51, -35.21)
CIE-LCHlch(71.21, 52.92, 318.29°)
OKLaboklab(76.77% 0.1023 -0.0968)
OKLCHoklch(76.77% 0.141 316.6)
XYZxyz(54.5084, 42.4931, 86.9752)
Luminance0.4249 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796EF #AEEF96
analogous
#AB96EF #D796EF #EF96DB
triadic
#D796EF #EFD796 #96EFD7
tetradic
#D796EF #EFAB96 #AEEF96 #96DBEF
square
#D796EF #EFAB96 #AEEF96 #96DBEF
split-complementary
#D796EF #DBEF96 #96EFAB
monochromatic
#AF2CDF #C361E7 #D796EF #EBCBF7 #F5E4FB

Accessibility & contrast

On white

2.21
#D796EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#D796EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796EF
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796EF#FFFFFF#000000##000000
##D796EF1.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AAF2
Deuteranopia (green-blind)
#98B0EC
Tritanopia (blue-blind)
#D6A1B7
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d796ef;
/* rgb */ color: rgb(215, 150, 239);
/* oklch */ color: oklch(76.8% 0.141 316.6);
Tailwind
colors: {
  custom: {
    50: '#e4b6f4',
    500: '#d796ef',
    950: '#000000',
  },
}
SCSS
$custom: #d796ef;
$custom-light: #e4b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d796ef",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 239
  },
  "hsl": {
    "h": 283.82,
    "s": 73.554,
    "l": 76.275
  },
  "oklch": {
    "l": 0.76768,
    "c": 0.14085,
    "h": 316.6
  },
  "luminance": 0.42492
}

Semantic roles & 50–950 ramp

primary
#D796EF
secondary
#DFF3D8
accent
#D61045
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D796EF

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

Preview Lab → · Contrast checker → · Palette generator →

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