#cf5dfc
a light, electric violet · cool · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #cf5dfc 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 | #cf5dfc |
| RGB | rgb(207, 93, 252) |
| HSL | hsl(283, 96%, 68%) |
| CMYK | cmyk(18%, 63%, 0%, 1%) |
| LAB | lab(60.0 68.4 -60.1) |
| LCH | lch(60.0 91.0 318.7) |
| OKLCH | oklch(0.685 0.239 315.0) |
| Decimal | 13590012 |
| Display P3 | color(display-p3 0.812 0.365 0.988) |
Copy-ready code
/* CSS */
color: #cf5dfc;
background-color: #cf5dfc;
/* Tailwind (arbitrary) */
class="text-[#cf5dfc] bg-[#cf5dfc]"
/* SCSS */
$brand: #cf5dfc;
/* SwiftUI */
Color(red: 0.812, green: 0.365, blue: 0.988)
/* Android */
Color.parseColor("#cf5dfc")
/* Flutter */
Color(0xFFCF5DFC)
/* Python / OpenCV (BGR) */
(252, 93, 207)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. #cf5dfc is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FAF1FD;
--brand-100: #F5E4FC;
--brand-200: #EAC1FA;
--brand-300: #DE91FD;
--brand-400: #cf5dfc;
--brand-500: #BE23FB;
--brand-600: #AE04F0;
--brand-700: #9104C8;
--brand-800: #7403A0;
--brand-900: #550773;
--brand-950: #350448;
--brand: #cf5dfc;
--brand-ink: #000000;
}Colors that work with #cf5dfc
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 #cf5dfc
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓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
- ⚠Small text on white — under 4.5:1
- ⚠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 | #8AFC5D | Directly opposite — maximum tension | |
| Analogous left | #7F5DFC | Neighbour, quieter | |
| Analogous right | #FC5DDA | Neighbour, quieter | |
| Split-complement 1 | #DAFC5D | Contrast without the clash | |
| Split-complement 2 | #5DFC7F | Contrast without the clash | |
| Triadic 1 | #FCCF5D | Even thirds — balanced and loud | |
| Triadic 2 | #5DFCCF | Even thirds — balanced and loud | |
| Tetradic | #FC7F5D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#cf5dfc text on a black background
contrast 6.62:1
#cf5dfc text on a white background
contrast 3.17:1
CSS3 live lab
The quick brown fox
color: #cf5dfc;
background-color: #cf5dfc;
Glowing headline
text-shadow: 2px 2px 8px #cf5dfc;
Soft neon halo
text-shadow: 0 0 14px rgba(207, 93, 252, 0.45);
box-shadow: 0 12px 32px -8px rgba(207, 93, 252, 0.45);
border: 3px solid #cf5dfc; background: linear-gradient(135deg, #cf5dfc, #FC5DBF);
Monochromatic scale
Palettes built from #cf5dfc
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: Magenta (#ff00ff) — ΔE2000 7.6 away, with its history, psychology and brand usage.
#cf5dfc in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#cf5dfc, answered
What color is #cf5dfc?
#cf5dfc is a light electric violet, closest to Medium Orchid (ΔE2000 6.9). It sits at 283° on the hue wheel with 96% saturation and 68% lightness, which reads as cool.
What is the RGB value of #cf5dfc?
rgb(207, 93, 252) — 207 red, 93 green and 252 blue out of 255, or 81.2% / 36.5% / 98.8% by channel.
Is #cf5dfc a light or a dark color?
It is a mid-tone. Relative luminance is 0.2812 and perceived brightness is 62%, so black text on it reaches 6.62:1.
Should I use black or white text on #cf5dfc?
Black. It scores 6.62:1 against #cf5dfc, versus 3.17:1 for white — AA at any size.
What is the complementary color of #cf5dfc?
#8AFC5D sits directly opposite on the wheel. Softer options are the split-complements #DAFC5D and #5DFC7F, which give the same contrast with far less vibration.
What colors go well with #cf5dfc?
For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #6DCC00 as an accent and #5A027D for hover and pressed states. For a palette, the analogous pair #7F5DFC and #FC5DDA stays calm, while #8AFC5D is the loudest partner.
What is #cf5dfc in CMYK for printing?
cmyk(18%, 63%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #cf5dfc warm or cool?
Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FC5DEF; nudged cooler, #945BFE.