#d8cfef
a pale, vivid violet · cool · closest name: Thistle
At a glance
Every number on this page in one read: what #d8cfef is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #d8cfef |
| RGB | rgb(216, 207, 239) |
| HSL | hsl(257, 50%, 88%) |
| CMYK | cmyk(10%, 13%, 0%, 6%) |
| LAB | lab(84.7 9.1 -14.6) |
| LCH | lch(84.7 17.2 302.0) |
| OKLCH | oklch(0.872 0.045 298.3) |
| Decimal | 14209007 |
| Display P3 | color(display-p3 0.847 0.812 0.937) |
Copy-ready code
/* CSS */
color: #d8cfef;
background-color: #d8cfef;
/* Tailwind (arbitrary) */
class="text-[#d8cfef] bg-[#d8cfef]"
/* SCSS */
$brand: #d8cfef;
/* SwiftUI */
Color(red: 0.847, green: 0.812, blue: 0.937)
/* Android */
Color.parseColor("#d8cfef")
/* Flutter */
Color(0xFFD8CFEF)
/* Python / OpenCV (BGR) */
(239, 207, 216)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #d8cfef is pinned to step 200; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F6F4FA;
--brand-100: #EDEAF6;
--brand-200: #d8cfef;
--brand-300: #BBABE3;
--brand-400: #9881D5;
--brand-500: #7657C7;
--brand-600: #603DB8;
--brand-700: #503399;
--brand-800: #40297A;
--brand-900: #312159;
--brand-950: #1F1538;
--brand: #d8cfef;
--brand-ink: #000000;
}Colors that work with #d8cfef
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #d8cfef
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠White text placed on it
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #E6EFCF | Directly opposite — maximum tension | |
| Analogous left | #CFD6EF | Neighbour, quieter | |
| Analogous right | #E8CFEF | Neighbour, quieter | |
| Split-complement 1 | #EFE8CF | Contrast without the clash | |
| Split-complement 2 | #D6EFCF | Contrast without the clash | |
| Triadic 1 | #EFD8CF | Even thirds — balanced and loud | |
| Triadic 2 | #CFEFD8 | Even thirds — balanced and loud | |
| Tetradic | #EFCFD6 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#d8cfef text on a black background
contrast 14.09:1
#d8cfef text on a white background
contrast 1.49:1
CSS3 live lab
The quick brown fox
color: #d8cfef;
background-color: #d8cfef;
Glowing headline
text-shadow: 2px 2px 8px #d8cfef;
Soft neon halo
text-shadow: 0 0 14px rgba(216, 207, 239, 0.45);
box-shadow: 0 12px 32px -8px rgba(216, 207, 239, 0.45);
border: 3px solid #d8cfef; background: linear-gradient(135deg, #d8cfef, #EDCFEF);
Monochromatic scale
Palettes built from #d8cfef
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Periwinkle (#ccccff) — ΔE2000 6.4 away, with its history, psychology and brand usage.
#d8cfef in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Very light tints can drop out on uncoated stock; check it at 100% size before signing off.
#d8cfef, answered
What color is #d8cfef?
#d8cfef is a pale vivid violet, closest to Thistle (ΔE2000 6.7). It sits at 257° on the hue wheel with 50% saturation and 88% lightness, which reads as cool.
What is the RGB value of #d8cfef?
rgb(216, 207, 239) — 216 red, 207 green and 239 blue out of 255, or 84.7% / 81.2% / 93.7% by channel.
Is #d8cfef a light or a dark color?
It is a light color. Relative luminance is 0.6546 and perceived brightness is 84%, so black text on it reaches 14.09:1.
Should I use black or white text on #d8cfef?
Black. It scores 14.09:1 against #d8cfef, versus 1.49:1 for white — AAA at any size.
What is the complementary color of #d8cfef?
#E6EFCF sits directly opposite on the wheel. Softer options are the split-complements #EFE8CF and #D6EFCF, which give the same contrast with far less vibration.
What colors go well with #d8cfef?
For interface work: #F6F4FA as the surface, #CDC2EB for borders, #614B9B for secondary text, #999C30 as an accent and #322060 for hover and pressed states. For a palette, the analogous pair #CFD6EF and #E8CFEF stays calm, while #E6EFCF is the loudest partner.
What is #d8cfef in CMYK for printing?
cmyk(10%, 13%, 0%, 6%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #d8cfef warm or cool?
Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E4CFEF; nudged cooler, #CFD1F0.