#D796FF#D796FF

#D796FF is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.5% C 0.159 H 311.6°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#D796FF
RGBrgb(215, 150, 255)
HSLhsl(277, 100%, 79%)
HSVhsv(277, 41%, 100%)
CMYKcmyk(15.7%, 41.2%, 0%, 0%)
CIE-LABlab(71.88, 42.80, -42.88)
CIE-LCHlch(71.88, 60.58, 314.95°)
OKLaboklab(77.49% 0.1055 -0.1188)
OKLCHoklch(77.49% 0.159 311.6)
XYZxyz(56.9775, 43.4808, 99.9794)
Luminance0.4348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796FF #BEFF96
analogous
#A396FF #D796FF #FF96F2
triadic
#D796FF #FFD796 #96FFD7
tetradic
#D796FF #FFA396 #BEFF96 #96F2FF
square
#D796FF #FFA396 #BEFF96 #96F2FF
split-complementary
#D796FF #F2FF96 #96FFA3
monochromatic
#A81CFF #C059FF #D796FF #EED3FF #F3E0FF

Accessibility & contrast

On white

2.17
#D796FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#D796FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796FF
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796FF#FFFFFF#000000##000000
##D796FF1.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ADFF
Deuteranopia (green-blind)
#91B2FC
Tritanopia (blue-blind)
#D3A5BF
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d796ff;
/* rgb */ color: rgb(215, 150, 255);
/* oklch */ color: oklch(77.5% 0.159 311.6);
Tailwind
colors: {
  custom: {
    50: '#e5b6ff',
    500: '#d796ff',
    950: '#000000',
  },
}
SCSS
$custom: #d796ff;
$custom-light: #e5b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d796ff",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 255
  },
  "hsl": {
    "h": 277.143,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77494,
    "c": 0.15887,
    "h": 311.6
  },
  "luminance": 0.4348
}

Semantic roles & 50–950 ramp

primary
#D796FF
secondary
#E1F7D4
accent
#E60057
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D796FF

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

Preview Lab → · Contrast checker → · Palette generator →

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