#D97FFC

A color in the Purple, Crimson, Magenta family

#d97ffc is a color in the Purple, Crimson, Magenta family: RGB(217, 127, 252), HSL(283°, 95%, 74%), CMYK(14%, 50%, 0%, 1%). Closest named color: violet. Contrast is 2.5:1 on white and 8.39:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#d97ffc
RGBrgb(217 127 252)
RGB (legacy)rgb(217, 127, 252)
RGB %rgb(85% 50% 99%)
HSLhsl(283 95% 74%)
HSV / HSBhsv(283, 50%, 99%)
HWBhwb(283 50% 1%)
CMYKcmyk(14%, 50%, 0%, 1%)
CIELAB (D50)lab(66.94 50.41 -48.59)
LCHlch(66.94 70.02 316.05)
OKLaboklab(0.7404 0.1387 -0.1349)
OKLCHoklch(0.7404 0.1935 315.8)
Decimal14254076

Properties

Color TonePurple, Crimson, Magenta
Closest named colorviolet ΔE 4.4
Closest web-safe color#cc66ff
Hue283°
Saturation (HSL / HSV)95% / 50%
Lightness (HSL)74%
Brightness or Value (HSV)99%
Luminance (Rec.601 / Rec.709)66% / 61%
Relative luminance (WCAG)0.3696
Red / Green / Blue217 / 127 / 252

WCAG 2.2 Contrast Ratio

On White (#ffffff)
2.50:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
8.39:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 48.8 / -53.2 · As background with white / black text: Lc -53.8 / 55.2

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #d97ffc;
  --color-brand-oklch: oklch(74.04% 0.1935 315.8);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(217 127 252 / 50%); }
/* Tailwind CSS */
<div class="bg-[#d97ffc] text-[#d97ffc] border-[#d97ffc]">