#D796EC#D796EC

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

Color values

HEX#D796EC
RGBrgb(215, 150, 236)
HSLhsl(285, 69%, 76%)
HSVhsv(285, 36%, 93%)
CMYKcmyk(8.9%, 36.4%, 0%, 7.5%)
CIE-LABlab(71.09, 38.91, -33.76)
CIE-LCHlch(71.09, 51.51, 319.06°)
OKLaboklab(76.64% 0.1017 -0.0926)
OKLCHoklch(76.64% 0.138 317.7)
XYZxyz(54.0689, 42.3173, 84.6604)
Luminance0.4232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796EC #ABEC96
analogous
#AC96EC #D796EC #EC96D6
triadic
#D796EC #ECD796 #96ECD7
tetradic
#D796EC #ECAC96 #ABEC96 #96D6EC
square
#D796EC #ECAC96 #ABEC96 #96D6EC
split-complementary
#D796EC #D6EC96 #96ECAC
monochromatic
#B02ED9 #C362E3 #D796EC #EBCAF5 #F5E5FA

Accessibility & contrast

On white

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

On black

9.46
#D796EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796EC
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796EC#FFFFFF#000000##000000
##D796EC1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AAAEF
Deuteranopia (green-blind)
#9AB0E9
Tritanopia (blue-blind)
#D7A1B6
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d796ec;
/* rgb */ color: rgb(215, 150, 236);
/* oklch */ color: oklch(76.6% 0.138 317.7);
Tailwind
colors: {
  custom: {
    50: '#e4b6f2',
    500: '#d796ec',
    950: '#000000',
  },
}
SCSS
$custom: #d796ec;
$custom-light: #e4b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d796ec",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 285.349,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76638,
    "c": 0.13755,
    "h": 317.7
  },
  "luminance": 0.42316
}

Semantic roles & 50–950 ramp

primary
#D796EC
secondary
#DFF2D9
accent
#D11442
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D796EC

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

Preview Lab → · Contrast checker → · Palette generator →

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