#D17FC7#D17FC7

#D17FC7 is a light, vivid purple. Relative luminance 0.329; OKLCH L 70.7% C 0.137 H 331.4°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#D17FC7
RGBrgb(209, 127, 199)
HSLhsl(307, 47%, 66%)
HSVhsv(307, 39%, 82%)
CMYKcmyk(0%, 39.2%, 4.8%, 18%)
CIE-LABlab(64.05, 42.32, -24.15)
CIE-LCHlch(64.05, 48.73, 330.29°)
OKLaboklab(70.71% 0.1199 -0.0653)
OKLCHoklch(70.71% 0.137 331.4)
XYZxyz(44.1922, 32.8598, 58.0366)
Luminance0.3286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D17FC7 #7FD189
analogous
#B27FD1 #D17FC7 #D17F9E
triadic
#D17FC7 #C7D17F #7FC7D1
tetradic
#D17FC7 #D1B27F #7FD189 #7F9ED1
square
#D17FC7 #D1B27F #7FD189 #7F9ED1
split-complementary
#D17FC7 #9ED17F #7FD1B2
monochromatic
#9D3891 #C152B3 #D17FC7 #E1ACDB #F1D9EE

Accessibility & contrast

On white

2.77
#D17FC7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#D17FC7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D17FC7
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D17FC7#FFFFFF#000000##000000
##D17FC71.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D94CA
Deuteranopia (green-blind)
#929FC4
Tritanopia (blue-blind)
#D7849A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d17fc7;
/* rgb */ color: rgb(209, 127, 199);
/* oklch */ color: oklch(70.7% 0.137 331.4);
Tailwind
colors: {
  custom: {
    50: '#e0a6d8',
    500: '#d17fc7',
    950: '#000000',
  },
}
SCSS
$custom: #d17fc7;
$custom-light: #e0a6d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d17fc7",
  "rgb": {
    "r": 209,
    "g": 127,
    "b": 199
  },
  "hsl": {
    "h": 307.317,
    "s": 47.126,
    "l": 65.882
  },
  "oklch": {
    "l": 0.70706,
    "c": 0.13659,
    "h": 331.4
  },
  "luminance": 0.32858
}

Semantic roles & 50–950 ramp

primary
#D17FC7
secondary
#C8E3CC
accent
#BA3D2B
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#150F14
muted
#837F83

Preview Lab

Preview with #D17FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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