#DFD7F2

A color in the Violet family

#dfd7f2 is a color in the Violet family: RGB(223, 215, 242), HSL(258°, 51%, 90%), CMYK(8%, 11%, 0%, 5%). Closest named color: gainsboro. Contrast is 1.39:1 on white and 15.14:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#dfd7f2
RGBrgb(223 215 242)
RGB (legacy)rgb(223, 215, 242)
RGB %rgb(87% 84% 95%)
HSLhsl(258 51% 90%)
HSV / HSBhsv(258, 11%, 95%)
HWBhwb(258 84% 5%)
CMYKcmyk(8%, 11%, 0%, 5%)
CIELAB (D50)lab(87.25 6.57 -12.24)
LCHlch(87.25 13.89 298.22)
OKLaboklab(0.8937 0.0183 -0.0328)
OKLCHoklch(0.8937 0.0376 299.16)
Decimal14669810

Properties

Color ToneViolet
Closest named colorgainsboro ΔE 3.8
Closest web-safe color#ccccff
Hue258°
Saturation (HSL / HSV)51% / 11%
Lightness (HSL)90%
Brightness or Value (HSV)95%
Luminance (Rec.601 / Rec.709)86% / 86%
Relative luminance (WCAG)0.707
Red / Green / Blue223 / 215 / 242

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.39:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
15.14: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 18.8 / -84.7 · As background with white / black text: Lc -21.5 / 84.9

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: #dfd7f2;
  --color-brand-oklch: oklch(89.37% 0.0376 299.16);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(223 215 242 / 50%); }
/* Tailwind CSS */
<div class="bg-[#dfd7f2] text-[#dfd7f2] border-[#dfd7f2]">