Skip to content

#cba4ff

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

RGB
203, 164, 255
HSL
266°, 100%, 82%
CMYK
20, 36, 0, 0
Luminance
0.4647

At a glance

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

Hex
#cba4ff
Hue
266°
violet
Saturation
100%
electric
Lightness
82%
light
Brightness
100%
HSV value
Perceived
74%
weighted brightness
Luminance
0.4647
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
10.29:1
Closest name
Plum
ΔE2000 9.4
Where it sits
Hue266° of 360°
Saturation100%
Lightness82%
Temperature
Warm ← → Cool69% 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#cba4ff
RGBrgb(203, 164, 255)
HSLhsl(266, 100%, 82%)
CMYKcmyk(20%, 36%, 0%, 0%)
LABlab(73.8 31.8 -39.9)
LCHlch(73.8 51.0 308.5)
OKLCHoklch(0.787 0.132 303.2)
Decimal13346047
Display P3color(display-p3 0.796 0.643 1.000)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba4ff on white: 2.04:1
AA ✗ fail · AA-large · AAA
Aa
#cba4ff on black: 10.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #90B5FF
deuteranopia · #97B5FC
tritanopia · #C2B2C6

Color scale — 50 to 950

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

#F6F1FE
#EEE3FC
#DAC0FC
#cba4ff
#9F57FF
#7F1FFF
#6900F5
#5700CC
#4600A3
#350576
#210349
Base = 300Lightest = 50 · #F6F1FEDarkest = 950 · #210349
:root {
  --brand-50: #F6F1FE;
  --brand-100: #EEE3FC;
  --brand-200: #DAC0FC;
  --brand-300: #cba4ff;
  --brand-400: #9F57FF;
  --brand-500: #7F1FFF;
  --brand-600: #6900F5;
  --brand-700: #5700CC;
  --brand-800: #4600A3;
  --brand-900: #350576;
  --brand-950: #210349;
  --brand: #cba4ff;
  --brand-ink: #000000;
}

Colors that work with #cba4ff

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#D3C0ED
Hairlines and dividers
Muted text#6D4B9B
Captions on the surface
Accent#A8CC00
Second voice, not a rival
Dark variant#370080
Hover, pressed, headers
Light variant#F0E5FF
Selected rows, tints
Dark surface#1B1424
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 #cba4ff

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#D8FFA4
Analogous left#A4ABFF
Analogous right#F8A4FF
Split-complement 1#FFF8A4
Split-complement 2#ABFFA4
Triadic 1#FFCBA4
Triadic 2#A4FFCB
Tetradic#FFA4AB

RGB percentages

Red79.6%
Green64.3%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta35.7%
Yellow0.0%
Key (black)0.0%

Color previews

#cba4ff text on a black background

contrast 10.29:1

Card sample

#cba4ff text on a white background

contrast 2.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba4ff

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.

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

#cba4ff, answered

What color is #cba4ff?

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

What is the RGB value of #cba4ff?

rgb(203, 164, 255) — 203 red, 164 green and 255 blue out of 255, or 79.6% / 64.3% / 100% by channel.

Is #cba4ff a light or a dark color?

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

Should I use black or white text on #cba4ff?

Black. It scores 10.29:1 against #cba4ff, versus 2.04:1 for white — AAA at any size.

What is the complementary color of #cba4ff?

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

What colors go well with #cba4ff?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6D4B9B for secondary text, #A8CC00 as an accent and #370080 for hover and pressed states. For a palette, the analogous pair #A4ABFF and #F8A4FF stays calm, while #D8FFA4 is the loudest partner.

What is #cba4ff in CMYK for printing?

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

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

Work with #cba4ff in the Color Lab