Skip to content

#cb9dfe

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

RGB
203, 157, 254
HSL
269°, 98%, 81%
CMYK
20, 38, 0, 0
Luminance
0.4397

At a glance

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

Hex
#cb9dfe
Hue
269°
violet
Saturation
98%
electric
Lightness
81%
light
Brightness
100%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4397
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.79:1
Closest name
Plum
ΔE2000 9.4
Where it sits
Hue269° of 360°
Saturation98%
Lightness81%
Temperature
Warm ← → Cool68% 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#cb9dfe
RGBrgb(203, 157, 254)
HSLhsl(269, 98%, 81%)
CMYKcmyk(20%, 38%, 0%, 0%)
LABlab(72.2 35.4 -41.9)
LCHlch(72.2 54.8 310.2)
OKLCHoklch(0.775 0.142 305.1)
Decimal13344254
Display P3color(display-p3 0.796 0.616 0.996)

Copy-ready code

/* CSS */
color: #cb9dfe;
background-color: #cb9dfe;
/* Tailwind (arbitrary) */
class="text-[#cb9dfe] bg-[#cb9dfe]"
/* SCSS */
$brand: #cb9dfe;
/* SwiftUI */
Color(red: 0.796, green: 0.616, blue: 0.996)
/* Android */
Color.parseColor("#cb9dfe")
/* Flutter */
Color(0xFFCB9DFE)
/* Python / OpenCV (BGR) */
(254, 157, 203)

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

Accessibility — WCAG contrast

Aa
#cb9dfe on white: 2.14:1
AA ✗ fail · AA-large · AAA
Aa
#cb9dfe on black: 9.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #87B0FF
deuteranopia · #91B1FB
tritanopia · #C3ACC2

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cb9dfe 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
#EFE3FC
#DCC1FB
#cb9dfe
#A758FD
#8921FD
#7402F2
#6102CA
#4E02A2
#3A0674
#250449
Base = 300Lightest = 50 · #F7F1FDDarkest = 950 · #250449
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EFE3FC;
  --brand-200: #DCC1FB;
  --brand-300: #cb9dfe;
  --brand-400: #A758FD;
  --brand-500: #8921FD;
  --brand-600: #7402F2;
  --brand-700: #6102CA;
  --brand-800: #4E02A2;
  --brand-900: #3A0674;
  --brand-950: #250449;
  --brand: #cb9dfe;
  --brand-ink: #000000;
}

Colors that work with #cb9dfe

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#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#9FCC00
Second voice, not a rival
Dark variant#3D017E
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 #cb9dfe

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#D0FE9D
Analogous left#9D9FFE
Analogous right#FC9DFE
Split-complement 1#FEFC9D
Split-complement 2#9FFE9D
Triadic 1#FECB9D
Triadic 2#9DFECB
Tetradic#FE9D9F

RGB percentages

Red79.6%
Green61.6%
Blue99.6%

CMYK percentages

Cyan20.1%
Magenta38.2%
Yellow0.0%
Key (black)0.4%

Color previews

#cb9dfe text on a black background

contrast 9.79:1

Card sample

#cb9dfe text on a white background

contrast 2.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb9dfe

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.

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

#cb9dfe, answered

What color is #cb9dfe?

#cb9dfe is a light electric violet, closest to Plum (ΔE2000 9.4). It sits at 269° on the hue wheel with 98% saturation and 81% lightness, which reads as cool.

What is the RGB value of #cb9dfe?

rgb(203, 157, 254) — 203 red, 157 green and 254 blue out of 255, or 79.6% / 61.6% / 99.6% by channel.

Is #cb9dfe a light or a dark color?

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

Should I use black or white text on #cb9dfe?

Black. It scores 9.79:1 against #cb9dfe, versus 2.14:1 for white — AAA at any size.

What is the complementary color of #cb9dfe?

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

What colors go well with #cb9dfe?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #9FCC00 as an accent and #3D017E for hover and pressed states. For a palette, the analogous pair #9D9FFE and #FC9DFE stays calm, while #D0FE9D is the loudest partner.

What is #cb9dfe in CMYK for printing?

cmyk(20%, 38%, 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 #cb9dfe warm or cool?

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

Work with #cb9dfe in the Color Lab