Skip to content

#cb7cfe

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

RGB
203, 124, 254
HSL
277°, 99%, 74%
CMYK
20, 51, 0, 0
Luminance
0.3427

At a glance

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

Hex
#cb7cfe
Hue
277°
violet
Saturation
99%
electric
Lightness
74%
light
Brightness
100%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3427
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.85:1
Closest name
Violet
ΔE2000 8.1
Where it sits
Hue277° of 360°
Saturation99%
Lightness74%
Temperature
Warm ← → Cool63% 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#cb7cfe
RGBrgb(203, 124, 254)
HSLhsl(277, 99%, 74%)
CMYKcmyk(20%, 51%, 0%, 0%)
LABlab(65.2 53.0 -53.0)
LCHlch(65.2 74.9 315.0)
OKLCHoklch(0.722 0.195 310.5)
Decimal13335806
Display P3color(display-p3 0.796 0.486 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb7cfe on white: 2.67:1
AA ✗ fail · AA-large · AAA
Aa
#cb7cfe on black: 7.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #599AFF
deuteranopia · #72A0FB
tritanopia · #C592B2

Color scale — 50 to 950

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

#F9F1FE
#F2E3FC
#E4C1FB
#cb7cfe
#BD58FE
#A720FD
#9502F3
#7C02CA
#6301A2
#490675
#2E0449
Base = 300Lightest = 50 · #F9F1FEDarkest = 950 · #2E0449
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F2E3FC;
  --brand-200: #E4C1FB;
  --brand-300: #cb7cfe;
  --brand-400: #BD58FE;
  --brand-500: #A720FD;
  --brand-600: #9502F3;
  --brand-700: #7C02CA;
  --brand-800: #6301A2;
  --brand-900: #490675;
  --brand-950: #2E0449;
  --brand: #cb7cfe;
  --brand-ink: #000000;
}

Colors that work with #cb7cfe

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#F8F4FA
Tinted page background
Border#DBC0ED
Hairlines and dividers
Muted text#7B4B9B
Captions on the surface
Accent#83CC00
Second voice, not a rival
Dark variant#4D017F
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #cb7cfe

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#AFFE7C
Analogous left#8A7CFE
Analogous right#FE7CF0
Split-complement 1#F0FE7C
Split-complement 2#7CFE8A
Triadic 1#FECB7C
Triadic 2#7CFECB
Tetradic#FE8A7C

RGB percentages

Red79.6%
Green48.6%
Blue99.6%

CMYK percentages

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

Color previews

#cb7cfe text on a black background

contrast 7.85:1

Card sample

#cb7cfe text on a white background

contrast 2.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb7cfe

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.

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

#cb7cfe, answered

What color is #cb7cfe?

#cb7cfe is a light electric violet, closest to Violet (ΔE2000 8.1). It sits at 277° on the hue wheel with 99% saturation and 74% lightness, which reads as cool.

What is the RGB value of #cb7cfe?

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

Is #cb7cfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.3427 and perceived brightness is 66%, so black text on it reaches 7.85:1.

Should I use black or white text on #cb7cfe?

Black. It scores 7.85:1 against #cb7cfe, versus 2.67:1 for white — AAA at any size.

What is the complementary color of #cb7cfe?

#AFFE7C sits directly opposite on the wheel. Softer options are the split-complements #F0FE7C and #7CFE8A, which give the same contrast with far less vibration.

What colors go well with #cb7cfe?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #83CC00 as an accent and #4D017F for hover and pressed states. For a palette, the analogous pair #8A7CFE and #FE7CF0 stays calm, while #AFFE7C is the loudest partner.

What is #cb7cfe in CMYK for printing?

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

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB7CFE; nudged cooler, #9B7BFF.

Work with #cb7cfe in the Color Lab