#D166C2#D166C2

#D166C2 is a light, vivid purple. Relative luminance 0.270; OKLCH L 66.8% C 0.174 H 332.9°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#D166C2
RGBrgb(209, 102, 194)
HSLhsl(308, 54%, 61%)
HSVhsv(308, 51%, 82%)
CMYKcmyk(0%, 51.2%, 7.2%, 18%)
CIE-LABlab(58.93, 54.14, -29.20)
CIE-LCHlch(58.93, 61.51, 331.66°)
OKLaboklab(66.82% 0.1552 -0.0794)
OKLCHoklch(66.82% 0.174 332.9)
XYZxyz(40.7834, 26.9558, 54.0834)
Luminance0.2695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D166C2 #66D175
analogous
#AA66D1 #D166C2 #D1668C
triadic
#D166C2 #C2D166 #66C2D1
tetradic
#D166C2 #D1AA66 #66D175 #668CD1
square
#D166C2 #D1AA66 #66D175 #668CD1
split-complementary
#D166C2 #8CD166 #66D1AA
monochromatic
#912C83 #C03AAD #D166C2 #DF95D5 #EDC4E8

Accessibility & contrast

On white

3.29
#D166C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#D166C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D166C2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D166C2#FFFFFF#000000##000000
##D166C21.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6484C5
Deuteranopia (green-blind)
#8393BF
Tritanopia (blue-blind)
#D96D8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d166c2;
/* rgb */ color: rgb(209, 102, 194);
/* oklch */ color: oklch(66.8% 0.174 332.9);
Tailwind
colors: {
  custom: {
    50: '#e196d4',
    500: '#d166c2',
    950: '#000000',
  },
}
SCSS
$custom: #d166c2;
$custom-light: #e196d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d166c2",
  "rgb": {
    "r": 209,
    "g": 102,
    "b": 194
  },
  "hsl": {
    "h": 308.411,
    "s": 53.769,
    "l": 60.98
  },
  "oklch": {
    "l": 0.66823,
    "c": 0.17429,
    "h": 332.9
  },
  "luminance": 0.26953
}

Semantic roles & 50–950 ramp

primary
#D166C2
secondary
#B5DEBB
accent
#C13A24
background
#FEF9FD
surface
#FCF2FA
border
#D5CCD3
text
#160E14
muted
#847E83

Preview Lab

Preview with #D166C2

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

Preview Lab → · Contrast checker → · Palette generator →

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