#D796DC#D796DC

#D796DC is a light, vivid purple. Relative luminance 0.414; OKLCH L 76.0% C 0.120 H 324.2°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#D796DC
RGBrgb(215, 150, 220)
HSLhsl(296, 50%, 73%)
HSVhsv(296, 32%, 86%)
CMYKcmyk(2.3%, 31.8%, 0%, 13.7%)
CIE-LABlab(70.48, 35.80, -25.92)
CIE-LCHlch(70.48, 44.20, 324.10°)
OKLaboklab(75.97% 0.0978 -0.0704)
OKLCHoklch(75.97% 0.12 324.2)
XYZxyz(51.8476, 41.4288, 72.9617)
Luminance0.4143 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796DC #9BDC96
analogous
#B496DC #D796DC #DC96BE
triadic
#D796DC #DCD796 #96DCD7
tetradic
#D796DC #DCB496 #9BDC96 #96BEDC
square
#D796DC #DCB496 #9BDC96 #96BEDC
split-complementary
#D796DC #BEDC96 #96DCB4
monochromatic
#B13EBA #C668CD #D796DC #E8C4EB #F6E8F7

Accessibility & contrast

On white

2.26
#D796DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.29
#D796DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796DC
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796DC#FFFFFF#000000##000000
##D796DC1.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A7DF
Deuteranopia (green-blind)
#9FAFDA
Tritanopia (blue-blind)
#DA9DB0
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #d796dc;
/* rgb */ color: rgb(215, 150, 220);
/* oklch */ color: oklch(76.0% 0.120 324.2);
Tailwind
colors: {
  custom: {
    50: '#e4b6e7',
    500: '#d796dc',
    950: '#000000',
  },
}
SCSS
$custom: #d796dc;
$custom-light: #e4b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d796dc",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 220
  },
  "hsl": {
    "h": 295.714,
    "s": 50,
    "l": 72.549
  },
  "oklch": {
    "l": 0.75971,
    "c": 0.12049,
    "h": 324.2
  },
  "luminance": 0.41427
}

Semantic roles & 50–950 ramp

primary
#D796DC
secondary
#DEEEDD
accent
#BD2833
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D796DC

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

Preview Lab → · Contrast checker → · Palette generator →

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