Skip to content

#cd9cfb

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

RGB
205, 156, 251
HSL
271°, 92%, 80%
CMYK
18, 38, 0, 2
Luminance
0.4372

At a glance

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

Hex
#cd9cfb
Hue
271°
violet
Saturation
92%
electric
Lightness
80%
light
Brightness
98%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4372
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.74:1
Closest name
Plum
ΔE2000 8.7
Where it sits
Hue271° of 360°
Saturation92%
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#cd9cfb
RGBrgb(205, 156, 251)
HSLhsl(271, 92%, 80%)
CMYKcmyk(18%, 38%, 0%, 2%)
LABlab(72.0 35.8 -40.5)
LCHlch(72.0 54.1 311.5)
OKLCHoklch(0.773 0.141 307.1)
Decimal13475067
Display P3color(display-p3 0.804 0.612 0.984)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd9cfb on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#cd9cfb on black: 9.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #88AFFF
deuteranopia · #93B1F8
tritanopia · #C7AAC0

Color scale — 50 to 950

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

#F8F2FD
#F0E4FB
#DFC3F9
#cd9cfb
#AD5DF8
#9227F6
#7E0AEB
#6908C4
#54069D
#3F0971
#270647
Base = 300Lightest = 50 · #F8F2FDDarkest = 950 · #270647
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F0E4FB;
  --brand-200: #DFC3F9;
  --brand-300: #cd9cfb;
  --brand-400: #AD5DF8;
  --brand-500: #9227F6;
  --brand-600: #7E0AEB;
  --brand-700: #6908C4;
  --brand-800: #54069D;
  --brand-900: #3F0971;
  --brand-950: #270647;
  --brand: #cd9cfb;
  --brand-ink: #000000;
}

Colors that work with #cd9cfb

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#94C804
Second voice, not a rival
Dark variant#42057B
Hover, pressed, headers
Light variant#F3E6FE
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 #cd9cfb

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#CAFB9C
Analogous left#9D9CFB
Analogous right#FB9CFA
Split-complement 1#FAFB9C
Split-complement 2#9CFB9D
Triadic 1#FBCD9C
Triadic 2#9CFBCD
Tetradic#FB9D9C

RGB percentages

Red80.4%
Green61.2%
Blue98.4%

CMYK percentages

Cyan18.3%
Magenta37.8%
Yellow0.0%
Key (black)1.6%

Color previews

#cd9cfb text on a black background

contrast 9.74:1

Card sample

#cd9cfb text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd9cfb

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.

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

#cd9cfb, answered

What color is #cd9cfb?

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

What is the RGB value of #cd9cfb?

rgb(205, 156, 251) — 205 red, 156 green and 251 blue out of 255, or 80.4% / 61.2% / 98.4% by channel.

Is #cd9cfb a light or a dark color?

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

Should I use black or white text on #cd9cfb?

Black. It scores 9.74:1 against #cd9cfb, versus 2.16:1 for white — AAA at any size.

What is the complementary color of #cd9cfb?

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

What colors go well with #cd9cfb?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #94C804 as an accent and #42057B for hover and pressed states. For a palette, the analogous pair #9D9CFB and #FB9CFA stays calm, while #CAFB9C is the loudest partner.

What is #cd9cfb in CMYK for printing?

cmyk(18%, 38%, 0%, 2%). 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 #cd9cfb 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 #F09CFB; nudged cooler, #A99BFC.

Work with #cd9cfb in the Color Lab