#D166D5#D166D5

#D166D5 is a light, vivid purple. Relative luminance 0.279; OKLCH L 67.7% C 0.191 H 326.1°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#D166D5
RGBrgb(209, 102, 213)
HSLhsl(298, 57%, 62%)
HSVhsv(298, 52%, 84%)
CMYKcmyk(1.9%, 52.1%, 0%, 16.5%)
CIE-LABlab(59.77, 57.42, -38.67)
CIE-LCHlch(59.77, 69.23, 326.04°)
OKLaboklab(67.71% 0.1582 -0.1065)
OKLCHoklch(67.71% 0.191 326.1)
XYZxyz(43.0552, 27.8645, 66.0484)
Luminance0.2786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166D5 #6AD566
analogous
#9A66D5 #D166D5 #D566A2
triadic
#D166D5 #D5D166 #66D5D1
tetradic
#D166D5 #D59A66 #6AD566 #66A2D5
square
#D166D5 #D59A66 #6AD566 #66A2D5
split-complementary
#D166D5 #A2D566 #66D59A
monochromatic
#932997 #C237C7 #D166D5 #DF96E2 #EEC6EF

Accessibility & contrast

On white

3.20
#D166D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#D166D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166D5
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166D5#FFFFFF#000000##000000
##D166D51.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5987D9
Deuteranopia (green-blind)
#7B95D2
Tritanopia (blue-blind)
#D67394
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #d166d5;
/* rgb */ color: rgb(209, 102, 213);
/* oklch */ color: oklch(67.7% 0.191 326.1);
Tailwind
colors: {
  custom: {
    50: '#e196e2',
    500: '#d166d5',
    950: '#000000',
  },
}
SCSS
$custom: #d166d5;
$custom-light: #e196e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d166d5",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 213
  },
  "hsl": {
    "h": 297.838,
    "s": 56.923,
    "l": 61.765
  },
  "oklch": {
    "l": 0.6771,
    "c": 0.19069,
    "h": 326.1
  },
  "luminance": 0.27862
}

Semantic roles & 50–950 ramp

primary
#D166D5
secondary
#B8E0B7
accent
#C42127
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160E15
muted
#847E83

Preview Lab

Preview with #D166D5

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

Preview Lab → · Contrast checker → · Palette generator →

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