Skip to content

#cba8ec

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

RGB
203, 168, 236
HSL
271°, 64%, 79%
CMYK
14, 29, 0, 8
Luminance
0.4676

At a glance

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

Hex
#cba8ec
Hue
271°
violet
Saturation
64%
vivid
Lightness
79%
light
Brightness
93%
HSV value
Perceived
74%
weighted brightness
Luminance
0.4676
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
10.35:1
Closest name
Plum
ΔE2000 6.5
Where it sits
Hue271° of 360°
Saturation64%
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#cba8ec
RGBrgb(203, 168, 236)
HSLhsl(271, 64%, 79%)
CMYKcmyk(14%, 29%, 0%, 8%)
LABlab(74.0 25.4 -29.3)
LCHlch(74.0 38.8 311.0)
OKLCHoklch(0.786 0.102 307.7)
Decimal13347052
Display P3color(display-p3 0.796 0.659 0.925)

Copy-ready code

/* CSS */
color: #cba8ec;
background-color: #cba8ec;
/* Tailwind (arbitrary) */
class="text-[#cba8ec] bg-[#cba8ec]"
/* SCSS */
$brand: #cba8ec;
/* SwiftUI */
Color(red: 0.796, green: 0.659, blue: 0.925)
/* Android */
Color.parseColor("#cba8ec")
/* Flutter */
Color(0xFFCBA8EC)
/* Python / OpenCV (BGR) */
(236, 168, 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 #cba8ec · 10.35:1
Use #000000AAA at every size.
Aa
White text · 2.03:1
AA fail · AA large fail · AAA fail
Aa
Black text · 10.35:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cba8ec as text scores 2.03:1 on white and 10.35:1 on black.

Accessibility — WCAG contrast

Aa
#cba8ec on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#cba8ec on black: 10.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9CB5EF
deuteranopia · #A3B6EA
tritanopia · #C7B1C0

Color scale — 50 to 950

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

#F7F4FB
#F0E8F7
#DECBF1
#cba8ec
#AC75E1
#9147D7
#7D2CC9
#6825A7
#531D86
#3E1961
#27103D
Base = 300Lightest = 50 · #F7F4FBDarkest = 950 · #27103D
:root {
  --brand-50: #F7F4FB;
  --brand-100: #F0E8F7;
  --brand-200: #DECBF1;
  --brand-300: #cba8ec;
  --brand-400: #AC75E1;
  --brand-500: #9147D7;
  --brand-600: #7D2CC9;
  --brand-700: #6825A7;
  --brand-800: #531D86;
  --brand-900: #3E1961;
  --brand-950: #27103D;
  --brand: #cba8ec;
  --brand-ink: #000000;
}

Colors that work with #cba8ec

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#87AB21
Second voice, not a rival
Dark variant#411769
Hover, pressed, headers
Light variant#F2EAFA
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 #cba8ec

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#C9ECA8
Analogous left#A9A8EC
Analogous right#ECA8EB
Split-complement 1#EBECA8
Split-complement 2#A8ECA9
Triadic 1#ECCBA8
Triadic 2#A8ECCB
Tetradic#ECA9A8

RGB percentages

Red79.6%
Green65.9%
Blue92.5%

CMYK percentages

Cyan14.0%
Magenta28.8%
Yellow0.0%
Key (black)7.5%

Color previews

#cba8ec text on a black background

contrast 10.35:1

Card sample

#cba8ec text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba8ec

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.

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

Converts to four-color process without much drama. Proof it anyway.

#cba8ec, answered

What color is #cba8ec?

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

What is the RGB value of #cba8ec?

rgb(203, 168, 236) — 203 red, 168 green and 236 blue out of 255, or 79.6% / 65.9% / 92.5% by channel.

Is #cba8ec a light or a dark color?

It is a mid-tone. Relative luminance is 0.4676 and perceived brightness is 74%, so black text on it reaches 10.35:1.

Should I use black or white text on #cba8ec?

Black. It scores 10.35:1 against #cba8ec, versus 2.03:1 for white — AAA at any size.

What is the complementary color of #cba8ec?

#C9ECA8 sits directly opposite on the wheel. Softer options are the split-complements #EBECA8 and #A8ECA9, which give the same contrast with far less vibration.

What colors go well with #cba8ec?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #87AB21 as an accent and #411769 for hover and pressed states. For a palette, the analogous pair #A9A8EC and #ECA8EB stays calm, while #C9ECA8 is the loudest partner.

What is #cba8ec in CMYK for printing?

cmyk(14%, 29%, 0%, 8%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cba8ec 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 #E4A8EC; nudged cooler, #B1A7ED.

Work with #cba8ec in the Color Lab