#D796EA#D796EA

#D796EA is a light, vivid purple. Relative luminance 0.422; OKLCH L 76.6% C 0.135 H 318.4°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#D796EA
RGBrgb(215, 150, 234)
HSLhsl(286, 67%, 75%)
HSVhsv(286, 36%, 92%)
CMYKcmyk(8.1%, 35.9%, 0%, 8.2%)
CIE-LABlab(71.01, 38.51, -32.78)
CIE-LCHlch(71.01, 50.57, 319.59°)
OKLaboklab(76.55% 0.1012 -0.0899)
OKLCHoklch(76.55% 0.135 318.4)
XYZxyz(53.7799, 42.2017, 83.1387)
Luminance0.4220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796EA #A9EA96
analogous
#AD96EA #D796EA #EA96D3
triadic
#D796EA #EAD796 #96EAD7
tetradic
#D796EA #EAAD96 #A9EA96 #96D3EA
square
#D796EA #EAAD96 #A9EA96 #96D3EA
split-complementary
#D796EA #D3EA96 #96EAAD
monochromatic
#B030D6 #C463E0 #D796EA #EAC9F4 #F5E5FA

Accessibility & contrast

On white

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

On black

9.44
#D796EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796EA
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796EA#FFFFFF#000000##000000
##D796EA1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA9ED
Deuteranopia (green-blind)
#9AB0E7
Tritanopia (blue-blind)
#D7A0B5
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d796ea;
/* rgb */ color: rgb(215, 150, 234);
/* oklch */ color: oklch(76.6% 0.135 318.4);
Tailwind
colors: {
  custom: {
    50: '#e4b6f1',
    500: '#d796ea',
    950: '#000000',
  },
}
SCSS
$custom: #d796ea;
$custom-light: #e4b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d796ea",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 234
  },
  "hsl": {
    "h": 286.429,
    "s": 66.667,
    "l": 75.294
  },
  "oklch": {
    "l": 0.76552,
    "c": 0.13535,
    "h": 318.4
  },
  "luminance": 0.422
}

Semantic roles & 50–950 ramp

primary
#D796EA
secondary
#DFF1DA
accent
#CF1740
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D796EA

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

Preview Lab → · Contrast checker → · Palette generator →

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