#D166D7#D166D7

#D166D7 is a light, vivid purple. Relative luminance 0.280; OKLCH L 67.8% C 0.192 H 325.4°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#D166D7
RGBrgb(209, 102, 215)
HSLhsl(297, 59%, 62%)
HSVhsv(297, 53%, 84%)
CMYKcmyk(2.8%, 52.6%, 0%, 15.7%)
CIE-LABlab(59.86, 57.78, -39.65)
CIE-LCHlch(59.86, 70.08, 325.54°)
OKLaboklab(67.81% 0.1584 -0.1093)
OKLCHoklch(67.81% 0.192 325.4)
XYZxyz(43.3106, 27.9667, 67.3936)
Luminance0.2796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166D7 #6CD766
analogous
#9966D7 #D166D7 #D766A5
triadic
#D166D7 #D7D166 #66D7D1
tetradic
#D166D7 #D79966 #6CD766 #66A5D7
square
#D166D7 #D79966 #6CD766 #66A5D7
split-complementary
#D166D7 #A5D766 #66D799
monochromatic
#94289A #C235CA #D166D7 #E097E4 #EEC7F0

Accessibility & contrast

On white

3.19
#D166D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#D166D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166D7
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166D7#FFFFFF#000000##000000
##D166D71.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5888DB
Deuteranopia (green-blind)
#7A95D4
Tritanopia (blue-blind)
#D57495
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #d166d7;
/* rgb */ color: rgb(209, 102, 215);
/* oklch */ color: oklch(67.8% 0.192 325.4);
Tailwind
colors: {
  custom: {
    50: '#e296e4',
    500: '#d166d7',
    950: '#000000',
  },
}
SCSS
$custom: #d166d7;
$custom-light: #e296e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d166d7",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 215
  },
  "hsl": {
    "h": 296.814,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.67809,
    "c": 0.19249,
    "h": 325.4
  },
  "luminance": 0.27964
}

Semantic roles & 50–950 ramp

primary
#D166D7
secondary
#BAE1B8
accent
#C61F28
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160E15
muted
#847E83

Preview Lab

Preview with #D166D7

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

Preview Lab → · Contrast checker → · Palette generator →

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