Skip to content

#cd96fd

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

RGB
205, 150, 253
HSL
272°, 96%, 79%
CMYK
19, 41, 0, 1
Luminance
0.4188

At a glance

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

Hex
#cd96fd
Hue
272°
violet
Saturation
96%
electric
Lightness
79%
light
Brightness
99%
HSV value
Perceived
71%
weighted brightness
Luminance
0.4188
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.38:1
Closest name
Violet
ΔE2000 8.5
Where it sits
Hue272° of 360°
Saturation96%
Lightness79%
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#cd96fd
RGBrgb(205, 150, 253)
HSLhsl(272, 96%, 79%)
CMYKcmyk(19%, 41%, 0%, 1%)
LABlab(70.8 39.5 -43.6)
LCHlch(70.8 58.8 312.2)
OKLCHoklch(0.764 0.153 307.7)
Decimal13473533
Display P3color(display-p3 0.804 0.588 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cd96fd on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#cd96fd on black: 9.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7FABFF
deuteranopia · #8CAEFA
tritanopia · #C6A6BE

Color scale — 50 to 950

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

#F8F1FD
#F0E4FC
#E0C1FA
#cd96fd
#B05AFC
#9623FB
#8205F0
#6D04C8
#5703A0
#410773
#290448
Base = 300Lightest = 50 · #F8F1FDDarkest = 950 · #290448
:root {
  --brand-50: #F8F1FD;
  --brand-100: #F0E4FC;
  --brand-200: #E0C1FA;
  --brand-300: #cd96fd;
  --brand-400: #B05AFC;
  --brand-500: #9623FB;
  --brand-600: #8205F0;
  --brand-700: #6D04C8;
  --brand-800: #5703A0;
  --brand-900: #410773;
  --brand-950: #290448;
  --brand: #cd96fd;
  --brand-ink: #000000;
}

Colors that work with #cd96fd

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#D8C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#93CC00
Second voice, not a rival
Dark variant#44027D
Hover, pressed, headers
Light variant#F3E6FF
Selected rows, tints
Dark surface#1D1424
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 #cd96fd

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#C6FD96
Analogous left#9996FD
Analogous right#FD96FA
Split-complement 1#FAFD96
Split-complement 2#96FD99
Triadic 1#FDCD96
Triadic 2#96FDCD
Tetradic#FD9996

RGB percentages

Red80.4%
Green58.8%
Blue99.2%

CMYK percentages

Cyan19.0%
Magenta40.7%
Yellow0.0%
Key (black)0.8%

Color previews

#cd96fd text on a black background

contrast 9.38:1

Card sample

#cd96fd text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cd96fd

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.

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

#cd96fd, answered

What color is #cd96fd?

#cd96fd is a light electric violet, closest to Violet (ΔE2000 8.5). It sits at 272° on the hue wheel with 96% saturation and 79% lightness, which reads as cool.

What is the RGB value of #cd96fd?

rgb(205, 150, 253) — 205 red, 150 green and 253 blue out of 255, or 80.4% / 58.8% / 99.2% by channel.

Is #cd96fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.4188 and perceived brightness is 71%, so black text on it reaches 9.38:1.

Should I use black or white text on #cd96fd?

Black. It scores 9.38:1 against #cd96fd, versus 2.24:1 for white — AAA at any size.

What is the complementary color of #cd96fd?

#C6FD96 sits directly opposite on the wheel. Softer options are the split-complements #FAFD96 and #96FD99, which give the same contrast with far less vibration.

What colors go well with #cd96fd?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #93CC00 as an accent and #44027D for hover and pressed states. For a palette, the analogous pair #9996FD and #FD96FA stays calm, while #C6FD96 is the loudest partner.

What is #cd96fd in CMYK for printing?

cmyk(19%, 41%, 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 #cd96fd 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 #F396FD; nudged cooler, #A695FE.

Work with #cd96fd in the Color Lab