#D796FE#D796FE

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

Color values

HEX#D796FE
RGBrgb(215, 150, 254)
HSLhsl(278, 98%, 79%)
HSVhsv(278, 41%, 100%)
CMYKcmyk(15.4%, 40.9%, 0%, 0.4%)
CIE-LABlab(71.84, 42.59, -42.40)
CIE-LCHlch(71.84, 60.10, 315.13°)
OKLaboklab(77.45% 0.1053 -0.1174)
OKLCHoklch(77.45% 0.158 311.9)
XYZxyz(56.8170, 43.4165, 99.1339)
Luminance0.4342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796FE #BDFE96
analogous
#A396FE #D796FE #FE96F1
triadic
#D796FE #FED796 #96FED7
tetradic
#D796FE #FEA396 #BDFE96 #96F1FE
square
#D796FE #FEA396 #BDFE96 #96F1FE
split-complementary
#D796FE #F1FE96 #96FEA3
monochromatic
#A91DFD #C059FD #D796FE #EED3FF #F3E1FF

Accessibility & contrast

On white

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

On black

9.68
#D796FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796FE
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796FE#FFFFFF#000000##000000
##D796FE1.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d796fe;
/* rgb */ color: rgb(215, 150, 254);
/* oklch */ color: oklch(77.4% 0.158 311.9);
Tailwind
colors: {
  custom: {
    50: '#e5b6ff',
    500: '#d796fe',
    950: '#000000',
  },
}
SCSS
$custom: #d796fe;
$custom-light: #e5b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d796fe",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 254
  },
  "hsl": {
    "h": 277.5,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77447,
    "c": 0.15774,
    "h": 311.9
  },
  "luminance": 0.43416
}

Semantic roles & 50–950 ramp

primary
#D796FE
secondary
#E1F7D4
accent
#E60056
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161118
muted
#848086

Preview Lab

Preview with #D796FE

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

Preview Lab → · Contrast checker → · Palette generator →

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