Skip to content

#cd7bfe

a light, electric violet · cool · closest name: Violet

RGB
205, 123, 254
HSL
278°, 99%, 74%
CMYK
19, 52, 0, 0
Luminance
0.3430

At a glance

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

Hex
#cd7bfe
Hue
278°
violet
Saturation
99%
electric
Lightness
74%
light
Brightness
100%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3430
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.86:1
Closest name
Violet
ΔE2000 7.9
Where it sits
Hue278° of 360°
Saturation99%
Lightness74%
Temperature
Warm ← → Cool62% 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#cd7bfe
RGBrgb(205, 123, 254)
HSLhsl(278, 99%, 74%)
CMYKcmyk(19%, 52%, 0%, 0%)
LABlab(65.2 54.0 -52.9)
LCHlch(65.2 75.6 315.6)
OKLCHoklch(0.723 0.197 311.3)
Decimal13466622
Display P3color(display-p3 0.804 0.482 0.996)

Copy-ready code

/* CSS */
color: #cd7bfe;
background-color: #cd7bfe;
/* Tailwind (arbitrary) */
class="text-[#cd7bfe] bg-[#cd7bfe]"
/* SCSS */
$brand: #cd7bfe;
/* SwiftUI */
Color(red: 0.804, green: 0.482, blue: 0.996)
/* Android */
Color.parseColor("#cd7bfe")
/* Flutter */
Color(0xFFCD7BFE)
/* Python / OpenCV (BGR) */
(254, 123, 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 #cd7bfe · 7.86:1
Use #000000AAA at every size.
Aa
White text · 2.67:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.86:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cd7bfe as text scores 2.67:1 on white and 7.86:1 on black.

Accessibility — WCAG contrast

Aa
#cd7bfe on white: 2.67:1
AA ✗ fail · AA-large · AAA
Aa
#cd7bfe on black: 7.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #589AFF
deuteranopia · #72A0FB
tritanopia · #C791B1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cd7bfe is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F1FE
#F3E3FC
#E5C1FB
#cd7bfe
#C058FE
#AB20FD
#9902F3
#7F02CA
#6601A2
#4B0675
#2F0449
Base = 300Lightest = 50 · #F9F1FEDarkest = 950 · #2F0449
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F3E3FC;
  --brand-200: #E5C1FB;
  --brand-300: #cd7bfe;
  --brand-400: #C058FE;
  --brand-500: #AB20FD;
  --brand-600: #9902F3;
  --brand-700: #7F02CA;
  --brand-800: #6601A2;
  --brand-900: #4B0675;
  --brand-950: #2F0449;
  --brand: #cd7bfe;
  --brand-ink: #000000;
}

Colors that work with #cd7bfe

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#F8F4FA
Tinted page background
Border#DCC0ED
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#7FCC00
Second voice, not a rival
Dark variant#50017F
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #cd7bfe

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

Works well for
  • 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
Use with care
  • 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#ACFE7B
Analogous left#8B7BFE
Analogous right#FE7BED
Split-complement 1#EDFE7B
Split-complement 2#7BFE8B
Triadic 1#FECD7B
Triadic 2#7BFECD
Tetradic#FE8B7B

RGB percentages

Red80.4%
Green48.2%
Blue99.6%

CMYK percentages

Cyan19.3%
Magenta51.6%
Yellow0.0%
Key (black)0.4%

Color previews

#cd7bfe text on a black background

contrast 7.86:1

Card sample

#cd7bfe text on a white background

contrast 2.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd7bfe

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.

#cd7bfe 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#cd7bfe, answered

What color is #cd7bfe?

#cd7bfe is a light electric violet, closest to Violet (ΔE2000 7.9). It sits at 278° on the hue wheel with 99% saturation and 74% lightness, which reads as cool.

What is the RGB value of #cd7bfe?

rgb(205, 123, 254) — 205 red, 123 green and 254 blue out of 255, or 80.4% / 48.2% / 99.6% by channel.

Is #cd7bfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.3430 and perceived brightness is 67%, so black text on it reaches 7.86:1.

Should I use black or white text on #cd7bfe?

Black. It scores 7.86:1 against #cd7bfe, versus 2.67:1 for white — AAA at any size.

What is the complementary color of #cd7bfe?

#ACFE7B sits directly opposite on the wheel. Softer options are the split-complements #EDFE7B and #7BFE8B, which give the same contrast with far less vibration.

What colors go well with #cd7bfe?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7D4B9B for secondary text, #7FCC00 as an accent and #50017F for hover and pressed states. For a palette, the analogous pair #8B7BFE and #FE7BED stays calm, while #ACFE7B is the loudest partner.

What is #cd7bfe in CMYK for printing?

cmyk(19%, 52%, 0%, 0%). 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 #cd7bfe warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FD7BFE; nudged cooler, #9C7AFF.

Work with #cd7bfe in the Color Lab