Skip to content

#cd9afe

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

RGB
205, 154, 254
HSL
271°, 98%, 80%
CMYK
19, 39, 0, 0
Luminance
0.4325

At a glance

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

Hex
#cd9afe
Hue
271°
violet
Saturation
98%
electric
Lightness
80%
light
Brightness
100%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4325
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.65:1
Closest name
Violet
ΔE2000 9.2
Where it sits
Hue271° of 360°
Saturation98%
Lightness80%
Temperature
Warm ← → Cool66% 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#cd9afe
RGBrgb(205, 154, 254)
HSLhsl(271, 98%, 80%)
CMYKcmyk(19%, 39%, 0%, 0%)
LABlab(71.7 37.6 -42.6)
LCHlch(71.7 56.8 311.4)
OKLCHoklch(0.771 0.148 306.7)
Decimal13474558
Display P3color(display-p3 0.804 0.604 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd9afe on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#cd9afe on black: 9.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #84AEFF
deuteranopia · #8FB0FB
tritanopia · #C6A9C0

Color scale — 50 to 950

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

#F7F1FD
#F0E3FC
#DEC1FB
#cd9afe
#AC58FD
#9121FD
#7D02F2
#6802CA
#5302A2
#3E0674
#270449
Base = 300Lightest = 50 · #F7F1FDDarkest = 950 · #270449
:root {
  --brand-50: #F7F1FD;
  --brand-100: #F0E3FC;
  --brand-200: #DEC1FB;
  --brand-300: #cd9afe;
  --brand-400: #AC58FD;
  --brand-500: #9121FD;
  --brand-600: #7D02F2;
  --brand-700: #6802CA;
  --brand-800: #5302A2;
  --brand-900: #3E0674;
  --brand-950: #270449;
  --brand: #cd9afe;
  --brand-ink: #000000;
}

Colors that work with #cd9afe

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#F7F4FA
Tinted page background
Border#D7C0ED
Hairlines and dividers
Muted text#744B9B
Captions on the surface
Accent#96CC00
Second voice, not a rival
Dark variant#41017E
Hover, pressed, headers
Light variant#F2E6FF
Selected rows, tints
Dark surface#1C1424
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 #cd9afe

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#CBFE9A
Analogous left#9B9AFE
Analogous right#FE9AFD
Split-complement 1#FDFE9A
Split-complement 2#9AFE9B
Triadic 1#FECD9A
Triadic 2#9AFECD
Tetradic#FE9B9A

RGB percentages

Red80.4%
Green60.4%
Blue99.6%

CMYK percentages

Cyan19.3%
Magenta39.4%
Yellow0.0%
Key (black)0.4%

Color previews

#cd9afe text on a black background

contrast 9.65:1

Card sample

#cd9afe text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd9afe

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.

#cd9afe 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.

#cd9afe, answered

What color is #cd9afe?

#cd9afe is a light electric violet, closest to Violet (ΔE2000 9.2). It sits at 271° on the hue wheel with 98% saturation and 80% lightness, which reads as cool.

What is the RGB value of #cd9afe?

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

Is #cd9afe a light or a dark color?

It is a mid-tone. Relative luminance is 0.4325 and perceived brightness is 72%, so black text on it reaches 9.65:1.

Should I use black or white text on #cd9afe?

Black. It scores 9.65:1 against #cd9afe, versus 2.18:1 for white — AAA at any size.

What is the complementary color of #cd9afe?

#CBFE9A sits directly opposite on the wheel. Softer options are the split-complements #FDFE9A and #9AFE9B, which give the same contrast with far less vibration.

What colors go well with #cd9afe?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #96CC00 as an accent and #41017E for hover and pressed states. For a palette, the analogous pair #9B9AFE and #FE9AFD stays calm, while #CBFE9A is the loudest partner.

What is #cd9afe in CMYK for printing?

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

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F29AFE; nudged cooler, #A899FF.

Work with #cd9afe in the Color Lab