Skip to content

#c28cfb

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

RGB
194, 140, 251
HSL
269°, 93%, 77%
CMYK
23, 44, 0, 2
Luminance
0.3719

At a glance

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

Hex
#c28cfb
Hue
269°
violet
Saturation
93%
electric
Lightness
77%
light
Brightness
98%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3719
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.44:1
Closest name
Violet
ΔE2000 9.5
Where it sits
Hue269° of 360°
Saturation93%
Lightness77%
Temperature
Warm ← → Cool67% 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#c28cfb
RGBrgb(194, 140, 251)
HSLhsl(269, 93%, 77%)
CMYKcmyk(23%, 44%, 0%, 2%)
LABlab(67.4 41.5 -47.9)
LCHlch(67.4 63.3 310.9)
OKLCHoklch(0.736 0.163 305.2)
Decimal12750075
Display P3color(display-p3 0.761 0.549 0.984)

Copy-ready code

/* CSS */
color: #c28cfb;
background-color: #c28cfb;
/* Tailwind (arbitrary) */
class="text-[#c28cfb] bg-[#c28cfb]"
/* SCSS */
$brand: #c28cfb;
/* SwiftUI */
Color(red: 0.761, green: 0.549, blue: 0.984)
/* Android */
Color.parseColor("#c28cfb")
/* Flutter */
Color(0xFFC28CFB)
/* Python / OpenCV (BGR) */
(251, 140, 194)

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 #c28cfb · 8.44:1
Use #000000AAA at every size.
Aa
White text · 2.49:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.44:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c28cfb as text scores 2.49:1 on white and 8.44:1 on black.

Accessibility — WCAG contrast

Aa
#c28cfb on white: 2.49:1
AA ✗ fail · AA-large · AAA
Aa
#c28cfb on black: 8.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #70A2FF
deuteranopia · #7DA4F8
tritanopia · #B99EB8

Color scale — 50 to 950

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

#F7F2FD
#EFE4FB
#DDC2F9
#c28cfb
#A95CF9
#8C26F7
#7708ED
#6307C5
#50059E
#3C0972
#250547
Base = 300Lightest = 50 · #F7F2FDDarkest = 950 · #250547
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE4FB;
  --brand-200: #DDC2F9;
  --brand-300: #c28cfb;
  --brand-400: #A95CF9;
  --brand-500: #8C26F7;
  --brand-600: #7708ED;
  --brand-700: #6307C5;
  --brand-800: #50059E;
  --brand-900: #3C0972;
  --brand-950: #250547;
  --brand: #c28cfb;
  --brand-ink: #000000;
}

Colors that work with #c28cfb

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#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#9AC903
Second voice, not a rival
Dark variant#3E047B
Hover, pressed, headers
Light variant#F2E6FE
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 #c28cfb

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#C5FB8C
Analogous left#8C8EFB
Analogous right#FA8CFB
Split-complement 1#FBFA8C
Split-complement 2#8EFB8C
Triadic 1#FBC28C
Triadic 2#8CFBC2
Tetradic#FB8C8E

RGB percentages

Red76.1%
Green54.9%
Blue98.4%

CMYK percentages

Cyan22.7%
Magenta44.2%
Yellow0.0%
Key (black)1.6%

Color previews

#c28cfb text on a black background

contrast 8.44:1

Card sample

#c28cfb text on a white background

contrast 2.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 140, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 140, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c28cfb;
background: linear-gradient(135deg, #c28cfb, #FB8CEA);

Monochromatic scale

Palettes built from #c28cfb

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.

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

#c28cfb, answered

What color is #c28cfb?

#c28cfb is a light electric violet, closest to Violet (ΔE2000 9.5). It sits at 269° on the hue wheel with 93% saturation and 77% lightness, which reads as cool.

What is the RGB value of #c28cfb?

rgb(194, 140, 251) — 194 red, 140 green and 251 blue out of 255, or 76.1% / 54.9% / 98.4% by channel.

Is #c28cfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3719 and perceived brightness is 68%, so black text on it reaches 8.44:1.

Should I use black or white text on #c28cfb?

Black. It scores 8.44:1 against #c28cfb, versus 2.49:1 for white — AAA at any size.

What is the complementary color of #c28cfb?

#C5FB8C sits directly opposite on the wheel. Softer options are the split-complements #FBFA8C and #8EFB8C, which give the same contrast with far less vibration.

What colors go well with #c28cfb?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #9AC903 as an accent and #3E047B for hover and pressed states. For a palette, the analogous pair #8C8EFB and #FA8CFB stays calm, while #C5FB8C is the loudest partner.

What is #c28cfb in CMYK for printing?

cmyk(23%, 44%, 0%, 2%). 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 #c28cfb warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EB8CFB; nudged cooler, #998BFC.

Work with #c28cfb in the Color Lab