#D796FB#D796FB

#D796FB is a light, vivid violet. Relative luminance 0.432; OKLCH L 77.3% C 0.154 H 312.8°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#D796FB
RGBrgb(215, 150, 251)
HSLhsl(279, 93%, 79%)
HSVhsv(279, 40%, 98%)
CMYKcmyk(14.3%, 40.2%, 0%, 1.6%)
CIE-LABlab(71.71, 41.96, -40.97)
CIE-LCHlch(71.71, 58.65, 315.68°)
OKLaboklab(77.31% 0.1048 -0.1133)
OKLCHoklch(77.31% 0.154 312.8)
XYZxyz(56.3403, 43.2259, 96.6236)
Luminance0.4323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D796FB #BAFB96
analogous
#A496FB #D796FB #FB96EC
triadic
#D796FB #FBD796 #96FBD7
tetradic
#D796FB #FBA496 #BAFB96 #96ECFB
square
#D796FB #FBA496 #BAFB96 #96ECFB
split-complementary
#D796FB #ECFB96 #96FBA4
monochromatic
#AA20F7 #C15BF9 #D796FB #EDD1FD #F4E2FE

Accessibility & contrast

On white

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

On black

9.65
#D796FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D796FB
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D796FB#FFFFFF#000000##000000
##D796FB1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ACFF
Deuteranopia (green-blind)
#93B1F8
Tritanopia (blue-blind)
#D4A4BD
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #d796fb;
/* rgb */ color: rgb(215, 150, 251);
/* oklch */ color: oklch(77.3% 0.154 312.8);
Tailwind
colors: {
  custom: {
    50: '#e5b6fd',
    500: '#d796fb',
    950: '#000000',
  },
}
SCSS
$custom: #d796fb;
$custom-light: #e5b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#d796fb",
  "rgb": {
    "r": 215,
    "g": 150,
    "b": 251
  },
  "hsl": {
    "h": 278.614,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.77308,
    "c": 0.15432,
    "h": 312.8
  },
  "luminance": 0.43225
}

Semantic roles & 50–950 ramp

primary
#D796FB
secondary
#E1F6D5
accent
#E60052
background
#FEFBFF
surface
#FCF6FF
border
#D5D0D7
text
#161117
muted
#848085

Preview Lab

Preview with #D796FB

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

Preview Lab → · Contrast checker → · Palette generator →

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