Skip to content

#cba7ff

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

RGB
203, 167, 255
HSL
265°, 100%, 83%
CMYK
20, 35, 0, 0
Luminance
0.4755

At a glance

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

Hex
#cba7ff
Hue
265°
violet
Saturation
100%
electric
Lightness
83%
light
Brightness
100%
HSV value
Perceived
75%
weighted brightness
Luminance
0.4755
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
10.51:1
Closest name
Plum
ΔE2000 9.5
Where it sits
Hue265° of 360°
Saturation100%
Lightness83%
Temperature
Warm ← → Cool70% 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#cba7ff
RGBrgb(203, 167, 255)
HSLhsl(265, 100%, 83%)
CMYKcmyk(20%, 35%, 0%, 0%)
LABlab(74.5 30.1 -38.8)
LCHlch(74.5 49.1 307.8)
OKLCHoklch(0.792 0.127 302.4)
Decimal13346815
Display P3color(display-p3 0.796 0.655 1.000)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba7ff on white: 2.00:1
AA ✗ fail · AA-large · AAA
Aa
#cba7ff on black: 10.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #93B7FF
deuteranopia · #9AB7FD
tritanopia · #C2B5C7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cba7ff is pinned to step 200; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F6F1FE
#EDE3FC
#cba7ff
#BD8FFF
#9B57FF
#7A1FFF
#6400F5
#5300CC
#4300A3
#330576
#200349
Base = 200Lightest = 50 · #F6F1FEDarkest = 950 · #200349
:root {
  --brand-50: #F6F1FE;
  --brand-100: #EDE3FC;
  --brand-200: #cba7ff;
  --brand-300: #BD8FFF;
  --brand-400: #9B57FF;
  --brand-500: #7A1FFF;
  --brand-600: #6400F5;
  --brand-700: #5300CC;
  --brand-800: #4300A3;
  --brand-900: #330576;
  --brand-950: #200349;
  --brand: #cba7ff;
  --brand-ink: #000000;
}

Colors that work with #cba7ff

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#D2C0ED
Hairlines and dividers
Muted text#6B4B9B
Captions on the surface
Accent#ACCC00
Second voice, not a rival
Dark variant#340080
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 #cba7ff

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#DBFFA7
Analogous left#A7AFFF
Analogous right#F7A7FF
Split-complement 1#FFF7A7
Split-complement 2#AFFFA7
Triadic 1#FFCBA7
Triadic 2#A7FFCB
Tetradic#FFA7AF

RGB percentages

Red79.6%
Green65.5%
Blue100.0%

CMYK percentages

Cyan20.4%
Magenta34.5%
Yellow0.0%
Key (black)0.0%

Color previews

#cba7ff text on a black background

contrast 10.51:1

Card sample

#cba7ff text on a white background

contrast 2.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba7ff

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.

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

#cba7ff, answered

What color is #cba7ff?

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

What is the RGB value of #cba7ff?

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

Is #cba7ff a light or a dark color?

It is a mid-tone. Relative luminance is 0.4755 and perceived brightness is 75%, so black text on it reaches 10.51:1.

Should I use black or white text on #cba7ff?

Black. It scores 10.51:1 against #cba7ff, versus 2.00:1 for white — AAA at any size.

What is the complementary color of #cba7ff?

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

What colors go well with #cba7ff?

For interface work: #F7F4FA as the surface, #D2C0ED for borders, #6B4B9B for secondary text, #ACCC00 as an accent and #340080 for hover and pressed states. For a palette, the analogous pair #A7AFFF and #F7A7FF stays calm, while #DBFFA7 is the loudest partner.

What is #cba7ff in CMYK for printing?

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

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

Work with #cba7ff in the Color Lab