#D796FD#D796FD

#D796FD is a light, vivid violet. Relative luminance 0.434; OKLCH L 77.4% C 0.157 H 312.2°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#D796FD
RGBrgb(215, 150, 253)
HSLhsl(278, 96%, 79%)
HSVhsv(278, 41%, 99%)
CMYKcmyk(15%, 40.7%, 0%, 0.8%)
CIE-LABlab(71.79, 42.38, -41.92)
CIE-LCHlch(71.79, 59.61, 315.31°)
OKLaboklab(77.4% 0.1052 -0.116)
OKLCHoklch(77.4% 0.157 312.2)
XYZxyz(56.6573, 43.3527, 98.2927)
Luminance0.4335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796FD #BCFD96
analogous
#A496FD #D796FD #FD96F0
triadic
#D796FD #FDD796 #96FDD7
tetradic
#D796FD #FDA496 #BCFD96 #96F0FD
square
#D796FD #FDA496 #BCFD96 #96F0FD
split-complementary
#D796FD #F0FD96 #96FDA4
monochromatic
#A91EFB #C05AFC #D796FD #EED2FE #F4E1FE

Accessibility & contrast

On white

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

On black

9.67
#D796FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796FD
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796FD#FFFFFF#000000##000000
##D796FD1.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#92B1FA
Tritanopia (blue-blind)
#D3A5BE
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d796fd;
/* rgb */ color: rgb(215, 150, 253);
/* oklch */ color: oklch(77.4% 0.157 312.2);
Tailwind
colors: {
  custom: {
    50: '#e5b6fe',
    500: '#d796fd',
    950: '#000000',
  },
}
SCSS
$custom: #d796fd;
$custom-light: #e5b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d796fd",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 253
  },
  "hsl": {
    "h": 277.864,
    "s": 96.262,
    "l": 79.02
  },
  "oklch": {
    "l": 0.774,
    "c": 0.1566,
    "h": 312.2
  },
  "luminance": 0.43352
}

Semantic roles & 50–950 ramp

primary
#D796FD
secondary
#E1F7D4
accent
#E60055
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D796FD

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

Preview Lab → · Contrast checker → · Palette generator →

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