Skip to content

#cc9afb

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

RGB
204, 154, 251
HSL
271°, 92%, 79%
CMYK
19, 39, 0, 2
Luminance
0.4291

At a glance

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

Hex
#cc9afb
Hue
271°
violet
Saturation
92%
electric
Lightness
79%
light
Brightness
98%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4291
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.58:1
Closest name
Plum
ΔE2000 8.9
Where it sits
Hue271° of 360°
Saturation92%
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#cc9afb
RGBrgb(204, 154, 251)
HSLhsl(271, 92%, 79%)
CMYKcmyk(19%, 39%, 0%, 2%)
LABlab(71.5 36.6 -41.4)
LCHlch(71.5 55.3 311.5)
OKLCHoklch(0.769 0.144 307.0)
Decimal13409019
Display P3color(display-p3 0.800 0.604 0.984)

Copy-ready code

/* CSS */
color: #cc9afb;
background-color: #cc9afb;
/* Tailwind (arbitrary) */
class="text-[#cc9afb] bg-[#cc9afb]"
/* SCSS */
$brand: #cc9afb;
/* SwiftUI */
Color(red: 0.800, green: 0.604, blue: 0.984)
/* Android */
Color.parseColor("#cc9afb")
/* Flutter */
Color(0xFFCC9AFB)
/* Python / OpenCV (BGR) */
(251, 154, 204)

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 #cc9afb · 9.58:1
Use #000000AAA at every size.
Aa
White text · 2.19:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.58:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cc9afb as text scores 2.19:1 on white and 9.58:1 on black.

Accessibility — WCAG contrast

Aa
#cc9afb on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#cc9afb on black: 9.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #85ADFF
deuteranopia · #90B0F8
tritanopia · #C5A9BF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cc9afb 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
#cc9afb
#AD5DF9
#9227F6
#7E09EB
#6908C4
#54069D
#3F0971
#270647
Base = 300Lightest = 50 · #F8F2FDDarkest = 950 · #270647
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F0E4FB;
  --brand-200: #DFC3F9;
  --brand-300: #cc9afb;
  --brand-400: #AD5DF9;
  --brand-500: #9227F6;
  --brand-600: #7E09EB;
  --brand-700: #6908C4;
  --brand-800: #54069D;
  --brand-900: #3F0971;
  --brand-950: #270647;
  --brand: #cc9afb;
  --brand-ink: #000000;
}

Colors that work with #cc9afb

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 #cc9afb

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#C9FB9A
Analogous left#9B9AFB
Analogous right#FB9AFA
Split-complement 1#FAFB9A
Split-complement 2#9AFB9B
Triadic 1#FBCC9A
Triadic 2#9AFBCC
Tetradic#FB9B9A

RGB percentages

Red80.0%
Green60.4%
Blue98.4%

CMYK percentages

Cyan18.7%
Magenta38.6%
Yellow0.0%
Key (black)1.6%

Color previews

#cc9afb text on a black background

contrast 9.58:1

Card sample

#cc9afb text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cc9afb

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.

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

#cc9afb, answered

What color is #cc9afb?

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

What is the RGB value of #cc9afb?

rgb(204, 154, 251) — 204 red, 154 green and 251 blue out of 255, or 80% / 60.4% / 98.4% by channel.

Is #cc9afb a light or a dark color?

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

Should I use black or white text on #cc9afb?

Black. It scores 9.58:1 against #cc9afb, versus 2.19:1 for white — AAA at any size.

What is the complementary color of #cc9afb?

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

What colors go well with #cc9afb?

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 #9B9AFB and #FB9AFA stays calm, while #C9FB9A is the loudest partner.

What is #cc9afb in CMYK for printing?

cmyk(19%, 39%, 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 #cc9afb 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 #F09AFB; nudged cooler, #A899FC.

Work with #cc9afb in the Color Lab