#D796F2#D796F2

#D796F2 is a light, vivid purple. Relative luminance 0.427; OKLCH L 76.9% C 0.144 H 315.6°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#D796F2
RGBrgb(215, 150, 242)
HSLhsl(282, 78%, 77%)
HSVhsv(282, 38%, 95%)
CMYKcmyk(11.2%, 38%, 0%, 5.1%)
CIE-LABlab(71.33, 40.11, -36.66)
CIE-LCHlch(71.33, 54.34, 317.58°)
OKLaboklab(76.9% 0.103 -0.1009)
OKLCHoklch(76.9% 0.144 315.6)
XYZxyz(54.9552, 42.6718, 89.3287)
Luminance0.4267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796F2 #B1F296
analogous
#A996F2 #D796F2 #F296DF
triadic
#D796F2 #F2D796 #96F2D7
tetradic
#D796F2 #F2A996 #B1F296 #96DFF2
square
#D796F2 #F2A996 #B1F296 #96DFF2
split-complementary
#D796F2 #DFF296 #96F2A9
monochromatic
#AE29E5 #C260EB #D796F2 #ECCCF9 #F5E4FC

Accessibility & contrast

On white

2.20
#D796F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#D796F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796F2
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796F2#FFFFFF#000000##000000
##D796F21.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#97B1EF
Tritanopia (blue-blind)
#D6A2B9
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d796f2;
/* rgb */ color: rgb(215, 150, 242);
/* oklch */ color: oklch(76.9% 0.144 315.6);
Tailwind
colors: {
  custom: {
    50: '#e4b6f6',
    500: '#d796f2',
    950: '#000000',
  },
}
SCSS
$custom: #d796f2;
$custom-light: #e4b6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d796f2",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 242
  },
  "hsl": {
    "h": 282.391,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.76901,
    "c": 0.14419,
    "h": 315.6
  },
  "luminance": 0.42671
}

Semantic roles & 50–950 ramp

primary
#D796F2
secondary
#E0F3D8
accent
#DA0B48
background
#FEFBFF
surface
#FCF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #D796F2

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

Preview Lab → · Contrast checker → · Palette generator →

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