#D766F2#D766F2

#D766F2 is a light, highly saturated purple. Relative luminance 0.304; OKLCH L 69.9% C 0.220 H 319.5°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#D766F2
RGBrgb(215, 102, 242)
HSLhsl(288, 84%, 67%)
HSVhsv(288, 58%, 95%)
CMYKcmyk(11.2%, 57.9%, 0%, 5.1%)
CIE-LABlab(61.97, 64.31, -51.36)
CIE-LCHlch(61.97, 82.31, 321.39°)
OKLaboklab(69.95% 0.1676 -0.1431)
OKLCHoklch(69.95% 0.22 319.5)
XYZxyz(48.8007, 30.3627, 87.2772)
Luminance0.3036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D766F2 #81F266
analogous
#9166F2 #D766F2 #F266C7
triadic
#D766F2 #F2D766 #66F2D7
tetradic
#D766F2 #F29166 #81F266 #66C7F2
square
#D766F2 #F29166 #81F266 #66C7F2
split-complementary
#D766F2 #C7F266 #66F291
monochromatic
#A811CC #C82EED #D766F2 #E69EF7 #F4D7FC

Accessibility & contrast

On white

2.97
#D766F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#D766F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D766F2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D766F2#FFFFFF#000000##000000
##D766F21.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#709AEE
Tritanopia (blue-blind)
#D87CA3
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d766f2;
/* rgb */ color: rgb(215, 102, 242);
/* oklch */ color: oklch(69.9% 0.220 319.5);
Tailwind
colors: {
  custom: {
    50: '#e697f7',
    500: '#d766f2',
    950: '#000000',
  },
}
SCSS
$custom: #d766f2;
$custom-light: #e697f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d766f2",
  "rgb": {
    "r": 215,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 288.429,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.69946,
    "c": 0.22036,
    "h": 319.5
  },
  "luminance": 0.30361
}

Semantic roles & 50–950 ramp

primary
#D766F2
secondary
#CCF0C4
accent
#E1052F
background
#FEF9FF
surface
#FDF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D766F2

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

Preview Lab → · Contrast checker → · Palette generator →

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