#D796F9#D796F9

#D796F9 is a light, vivid violet. Relative luminance 0.431; OKLCH L 77.2% C 0.152 H 313.4°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#D796F9
RGBrgb(215, 150, 249)
HSLhsl(279, 89%, 78%)
HSVhsv(279, 40%, 98%)
CMYKcmyk(13.7%, 39.8%, 0%, 2.4%)
CIE-LABlab(71.62, 41.55, -40.02)
CIE-LCHlch(71.62, 57.69, 316.07°)
OKLaboklab(77.22% 0.1044 -0.1106)
OKLCHoklch(77.22% 0.152 313.4)
XYZxyz(56.0267, 43.1004, 94.9720)
Luminance0.4310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796F9 #B8F996
analogous
#A596F9 #D796F9 #F996E9
triadic
#D796F9 #F9D796 #96F9D7
tetradic
#D796F9 #F9A596 #B8F996 #96E9F9
square
#D796F9 #F9A596 #B8F996 #96E9F9
split-complementary
#D796F9 #E9F996 #96F9A5
monochromatic
#AB22F2 #C15CF6 #D796F9 #EDD0FC #F4E2FD

Accessibility & contrast

On white

2.18
#D796F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#D796F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796F9
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796F9#FFFFFF#000000##000000
##D796F91.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ACFD
Deuteranopia (green-blind)
#94B1F6
Tritanopia (blue-blind)
#D4A4BC
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d796f9;
/* rgb */ color: rgb(215, 150, 249);
/* oklch */ color: oklch(77.2% 0.152 313.4);
Tailwind
colors: {
  custom: {
    50: '#e5b6fb',
    500: '#d796f9',
    950: '#000000',
  },
}
SCSS
$custom: #d796f9;
$custom-light: #e5b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d796f9",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 249
  },
  "hsl": {
    "h": 279.394,
    "s": 89.189,
    "l": 78.235
  },
  "oklch": {
    "l": 0.77216,
    "c": 0.15206,
    "h": 313.4
  },
  "luminance": 0.43099
}

Semantic roles & 50–950 ramp

primary
#D796F9
secondary
#E1F5D6
accent
#E6004F
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D796F9

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

Preview Lab → · Contrast checker → · Palette generator →

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