#D796ED#D796ED

#D796ED is a light, vivid purple. Relative luminance 0.424; OKLCH L 76.7% C 0.139 H 317.3°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#D796ED
RGBrgb(215, 150, 237)
HSLhsl(285, 71%, 76%)
HSVhsv(285, 37%, 93%)
CMYKcmyk(9.3%, 36.7%, 0%, 7.1%)
CIE-LABlab(71.13, 39.11, -34.24)
CIE-LCHlch(71.13, 51.98, 318.80°)
OKLaboklab(76.68% 0.1019 -0.094)
OKLCHoklch(76.68% 0.139 317.3)
XYZxyz(54.2146, 42.3756, 85.4277)
Luminance0.4237 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796ED #ACED96
analogous
#AB96ED #D796ED #ED96D7
triadic
#D796ED #EDD796 #96EDD7
tetradic
#D796ED #EDAB96 #ACED96 #96D7ED
square
#D796ED #EDAB96 #ACED96 #96D7ED
split-complementary
#D796ED #D7ED96 #96EDAB
monochromatic
#AF2EDB #C362E4 #D796ED #EBCAF6 #F5E5FB

Accessibility & contrast

On white

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

On black

9.47
#D796ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796ED
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796ED#FFFFFF#000000##000000
##D796ED1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AAF0
Deuteranopia (green-blind)
#99B0EA
Tritanopia (blue-blind)
#D7A1B7
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d796ed;
/* rgb */ color: rgb(215, 150, 237);
/* oklch */ color: oklch(76.7% 0.139 317.3);
Tailwind
colors: {
  custom: {
    50: '#e4b6f3',
    500: '#d796ed',
    950: '#000000',
  },
}
SCSS
$custom: #d796ed;
$custom-light: #e4b6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#d796ed",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 237
  },
  "hsl": {
    "h": 284.828,
    "s": 70.732,
    "l": 75.882
  },
  "oklch": {
    "l": 0.76681,
    "c": 0.13864,
    "h": 317.3
  },
  "luminance": 0.42374
}

Semantic roles & 50–950 ramp

primary
#D796ED
secondary
#DFF2D9
accent
#D31343
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D796ED

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

Preview Lab → · Contrast checker → · Palette generator →

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