Skip to content

#cd40fc

a balanced, electric violet · cool · closest name: Medium Orchid

RGB
205, 64, 252
HSL
285°, 97%, 62%
CMYK
19, 75, 0, 1
Luminance
0.2367

At a glance

Every number on this page in one read: what #cd40fc is made of, how bright it looks, and which way it leans.

Hex
#cd40fc
Hue
285°
violet
Saturation
97%
electric
Lightness
62%
balanced
Brightness
99%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2367
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.73:1
Closest name
Medium Orchid
ΔE2000 6
Where it sits
Hue285° of 360°
Saturation97%
Lightness62%
Temperature
Warm ← → Cool58% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#cd40fc
RGBrgb(205, 64, 252)
HSLhsl(285, 97%, 62%)
CMYKcmyk(19%, 75%, 0%, 1%)
LABlab(55.8 79.2 -66.9)
LCHlch(55.8 103.7 319.8)
OKLCHoklch(0.654 0.271 316.0)
Decimal13451516
Display P3color(display-p3 0.804 0.251 0.988)

Copy-ready code

/* CSS */
color: #cd40fc;
background-color: #cd40fc;
/* Tailwind (arbitrary) */
class="text-[#cd40fc] bg-[#cd40fc]"
/* SCSS */
$brand: #cd40fc;
/* SwiftUI */
Color(red: 0.804, green: 0.251, blue: 0.988)
/* Android */
Color.parseColor("#cd40fc")
/* Flutter */
Color(0xFFCD40FC)
/* Python / OpenCV (BGR) */
(252, 64, 205)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #cd40fc · 5.73:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.66:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.73:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #cd40fc as text scores 3.66:1 on white and 5.73:1 on black.

Accessibility — WCAG contrast

Aa
#cd40fc on white: 3.66:1
AA ✗ fail · AA-large · AAA
Aa
#cd40fc on black: 5.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007DFF
deuteranopia · #3D89F8
tritanopia · #CA6A9C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cd40fc 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.

#FAF1FD
#F6E4FC
#ECC1FB
#E291FD
#cd40fc
#C522FC
#B604F1
#9703C9
#7903A1
#580774
#370448
Base = 400Lightest = 50 · #FAF1FDDarkest = 950 · #370448
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F6E4FC;
  --brand-200: #ECC1FB;
  --brand-300: #E291FD;
  --brand-400: #cd40fc;
  --brand-500: #C522FC;
  --brand-600: #B604F1;
  --brand-700: #9703C9;
  --brand-800: #7903A1;
  --brand-900: #580774;
  --brand-950: #370448;
  --brand: #cd40fc;
  --brand-ink: #000000;
}

Colors that work with #cd40fc

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E1C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#66CC00
Second voice, not a rival
Dark variant#5F027E
Hover, pressed, headers
Light variant#F8E6FF
Selected rows, tints
Dark surface#201424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #cd40fc

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#6FFC40
Analogous left#6F40FC
Analogous right#FC40CD
Split-complement 1#CDFC40
Split-complement 2#40FC6F
Triadic 1#FCCD40
Triadic 2#40FCCD
Tetradic#FC6F40

RGB percentages

Red80.4%
Green25.1%
Blue98.8%

CMYK percentages

Cyan18.7%
Magenta74.6%
Yellow0.0%
Key (black)1.2%

Color previews

#cd40fc text on a black background

contrast 5.73:1

Card sample

#cd40fc text on a white background

contrast 3.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #cd40fc;
Background color
Panel with #cd40fc background
background-color: #cd40fc;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #cd40fc;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(205, 64, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 64, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cd40fc;
background: linear-gradient(135deg, #cd40fc, #FC40AE);

Monochromatic scale

Palettes built from #cd40fc

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.

#cd40fc in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#cd40fc, answered

What color is #cd40fc?

#cd40fc is a balanced electric violet, closest to Medium Orchid (ΔE2000 6). It sits at 285° on the hue wheel with 97% saturation and 62% lightness, which reads as cool.

What is the RGB value of #cd40fc?

rgb(205, 64, 252) — 205 red, 64 green and 252 blue out of 255, or 80.4% / 25.1% / 98.8% by channel.

Is #cd40fc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2367 and perceived brightness is 58%, so black text on it reaches 5.73:1.

Should I use black or white text on #cd40fc?

Black. It scores 5.73:1 against #cd40fc, versus 3.66:1 for white — AA at any size.

What is the complementary color of #cd40fc?

#6FFC40 sits directly opposite on the wheel. Softer options are the split-complements #CDFC40 and #40FC6F, which give the same contrast with far less vibration.

What colors go well with #cd40fc?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #874B9B for secondary text, #66CC00 as an accent and #5F027E for hover and pressed states. For a palette, the analogous pair #6F40FC and #FC40CD stays calm, while #6FFC40 is the loudest partner.

What is #cd40fc in CMYK for printing?

cmyk(19%, 75%, 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 #cd40fc warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FC40E6; nudged cooler, #883EFE.

Work with #cd40fc in the Color Lab