Skip to content

#cba7f3

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

RGB
203, 167, 243
HSL
268°, 76%, 80%
CMYK
17, 31, 0, 5
Luminance
0.4681

At a glance

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

Hex
#cba7f3
Hue
268°
violet
Saturation
76%
electric
Lightness
80%
light
Brightness
95%
HSV value
Perceived
74%
weighted brightness
Luminance
0.4681
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
10.36:1
Closest name
Plum
ΔE2000 7.5
Where it sits
Hue268° of 360°
Saturation76%
Lightness80%
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#cba7f3
RGBrgb(203, 167, 243)
HSLhsl(268, 76%, 80%)
CMYKcmyk(17%, 31%, 0%, 5%)
LABlab(74.1 27.5 -33.1)
LCHlch(74.1 43.0 309.7)
OKLCHoklch(0.787 0.112 305.7)
Decimal13346803
Display P3color(display-p3 0.796 0.655 0.953)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba7f3 on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#cba7f3 on black: 10.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #98B5F6
deuteranopia · #9FB6F1
tritanopia · #C5B2C2

Color scale — 50 to 950

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

#F7F3FC
#EFE7F9
#DDC8F4
#cba7f3
#A76BEB
#8A3AE4
#751DD7
#6218B4
#4E1490
#3B1268
#250C41
Base = 300Lightest = 50 · #F7F3FCDarkest = 950 · #250C41
:root {
  --brand-50: #F7F3FC;
  --brand-100: #EFE7F9;
  --brand-200: #DDC8F4;
  --brand-300: #cba7f3;
  --brand-400: #A76BEB;
  --brand-500: #8A3AE4;
  --brand-600: #751DD7;
  --brand-700: #6218B4;
  --brand-800: #4E1490;
  --brand-900: #3B1268;
  --brand-950: #250C41;
  --brand: #cba7f3;
  --brand-ink: #000000;
}

Colors that work with #cba7f3

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#93B814
Second voice, not a rival
Dark variant#3D0F70
Hover, pressed, headers
Light variant#F2E9FC
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 #cba7f3

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#CFF3A7
Analogous left#A7A9F3
Analogous right#F1A7F3
Split-complement 1#F3F1A7
Split-complement 2#A9F3A7
Triadic 1#F3CBA7
Triadic 2#A7F3CB
Tetradic#F3A7A9

RGB percentages

Red79.6%
Green65.5%
Blue95.3%

CMYK percentages

Cyan16.5%
Magenta31.3%
Yellow0.0%
Key (black)4.7%

Color previews

#cba7f3 text on a black background

contrast 10.36:1

Card sample

#cba7f3 text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba7f3

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.

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

#cba7f3, answered

What color is #cba7f3?

#cba7f3 is a light electric violet, closest to Plum (ΔE2000 7.5). It sits at 268° on the hue wheel with 76% saturation and 80% lightness, which reads as cool.

What is the RGB value of #cba7f3?

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

Is #cba7f3 a light or a dark color?

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

Should I use black or white text on #cba7f3?

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

What is the complementary color of #cba7f3?

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

What colors go well with #cba7f3?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #93B814 as an accent and #3D0F70 for hover and pressed states. For a palette, the analogous pair #A7A9F3 and #F1A7F3 stays calm, while #CFF3A7 is the loudest partner.

What is #cba7f3 in CMYK for printing?

cmyk(17%, 31%, 0%, 5%). 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 #cba7f3 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 #E7A7F3; nudged cooler, #AEA6F4.

Work with #cba7f3 in the Color Lab