#D796FC#D796FC

#D796FC is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.4% C 0.155 H 312.5°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#D796FC
RGBrgb(215, 150, 252)
HSLhsl(278, 94%, 79%)
HSVhsv(278, 40%, 99%)
CMYKcmyk(14.7%, 40.5%, 0%, 1.2%)
CIE-LABlab(71.75, 42.17, -41.45)
CIE-LCHlch(71.75, 59.13, 315.49°)
OKLaboklab(77.35% 0.105 -0.1147)
OKLCHoklch(77.35% 0.155 312.5)
XYZxyz(56.4984, 43.2891, 97.4559)
Luminance0.4329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796FC #BBFC96
analogous
#A496FC #D796FC #FC96EE
triadic
#D796FC #FCD796 #96FCD7
tetradic
#D796FC #FCA496 #BBFC96 #96EEFC
square
#D796FC #FCA496 #BBFC96 #96EEFC
split-complementary
#D796FC #EEFC96 #96FCA4
monochromatic
#AA1FF9 #C05BFA #D796FC #EED2FE #F4E1FE

Accessibility & contrast

On white

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

On black

9.66
#D796FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796FC
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796FC#FFFFFF#000000##000000
##D796FC1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ACFF
Deuteranopia (green-blind)
#93B1F9
Tritanopia (blue-blind)
#D4A5BD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d796fc;
/* rgb */ color: rgb(215, 150, 252);
/* oklch */ color: oklch(77.4% 0.155 312.5);
Tailwind
colors: {
  custom: {
    50: '#e5b6fd',
    500: '#d796fc',
    950: '#000000',
  },
}
SCSS
$custom: #d796fc;
$custom-light: #e5b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d796fc",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 278.235,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.77354,
    "c": 0.15546,
    "h": 312.5
  },
  "luminance": 0.43288
}

Semantic roles & 50–950 ramp

primary
#D796FC
secondary
#E1F6D5
accent
#E60053
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D796FC

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

Preview Lab → · Contrast checker → · Palette generator →

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