Skip to content

#6f28cf

a balanced, vivid violet · cool · closest name: Blue Violet

RGB
111, 40, 207
HSL
266°, 68%, 48%
CMYK
46, 81, 0, 19
Luminance
0.0940

At a glance

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

Hex
#6f28cf
Hue
266°
violet
Saturation
68%
vivid
Lightness
48%
balanced
Brightness
81%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0940
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.29:1
Closest name
Blue Violet
ΔE2000 5.2
Where it sits
Hue266° of 360°
Saturation68%
Lightness48%
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#6f28cf
RGBrgb(111, 40, 207)
HSLhsl(266, 68%, 48%)
CMYKcmyk(46%, 81%, 0%, 19%)
LABlab(36.8 62.8 -72.9)
LCHlch(36.8 96.2 310.7)
OKLCHoklch(0.484 0.231 295.3)
Decimal7284943
Display P3color(display-p3 0.435 0.157 0.812)

Copy-ready code

/* CSS */
color: #6f28cf;
background-color: #6f28cf;
/* Tailwind (arbitrary) */
class="text-[#6f28cf] bg-[#6f28cf]"
/* SCSS */
$brand: #6f28cf;
/* SwiftUI */
Color(red: 0.435, green: 0.157, blue: 0.812)
/* Android */
Color.parseColor("#6f28cf")
/* Flutter */
Color(0xFF6F28CF)
/* Python / OpenCV (BGR) */
(207, 40, 111)

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#ffffff on #6f28cf · 7.29:1
Use #ffffffAAA at every size.
Aa
White text · 7.29:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.88:1
AA fail · AA large fail · AAA fail
Reading the other direction: #6f28cf as text scores 7.29:1 on white and 2.88:1 on black.

Accessibility — WCAG contrast

Aa
#6f28cf on white: 7.29:1
AA ✓ pass · AA-large · AAA
Aa
#6f28cf on black: 2.88:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058D3
deuteranopia · #0054CC
tritanopia · #53597D

Color scale — 50 to 950

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

#F7F3FB
#EEE8F8
#DBCAF2
#C1A1ED
#A272E4
#8343DB
#6f28cf
#5C21AB
#491A89
#371763
#230E3E
Base = 600Lightest = 50 · #F7F3FBDarkest = 950 · #230E3E
:root {
  --brand-50: #F7F3FB;
  --brand-100: #EEE8F8;
  --brand-200: #DBCAF2;
  --brand-300: #C1A1ED;
  --brand-400: #A272E4;
  --brand-500: #8343DB;
  --brand-600: #6f28cf;
  --brand-700: #5C21AB;
  --brand-800: #491A89;
  --brand-900: #371763;
  --brand-950: #230E3E;
  --brand: #6f28cf;
  --brand-ink: #ffffff;
}

Colors that work with #6f28cf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F7F4FA
Tinted page background
Border#D3C0ED
Hairlines and dividers
Muted text#6D4B9B
Captions on the surface
Accent#96AF1D
Second voice, not a rival
Dark variant#39156B
Hover, pressed, headers
Light variant#F1EAFB
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 #6f28cf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • 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#88CF28
Analogous left#2835CF
Analogous right#C228CF
Split-complement 1#CFC228
Split-complement 2#35CF28
Triadic 1#CF6F28
Triadic 2#28CF6F
Tetradic#CF2835

RGB percentages

Red43.5%
Green15.7%
Blue81.2%

CMYK percentages

Cyan46.4%
Magenta80.7%
Yellow0.0%
Key (black)18.8%

Color previews

#6f28cf text on a black background

contrast 2.88:1

Card sample

#6f28cf text on a white background

contrast 7.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(111, 40, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(111, 40, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6f28cf;
background: linear-gradient(135deg, #6f28cf, #CF28C0);

Monochromatic scale

Palettes built from #6f28cf

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.

#6f28cf 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
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#6f28cf, answered

What color is #6f28cf?

#6f28cf is a balanced vivid violet, closest to Blue Violet (ΔE2000 5.2). It sits at 266° on the hue wheel with 68% saturation and 48% lightness, which reads as cool.

What is the RGB value of #6f28cf?

rgb(111, 40, 207) — 111 red, 40 green and 207 blue out of 255, or 43.5% / 15.7% / 81.2% by channel.

Is #6f28cf a light or a dark color?

It is a dark color. Relative luminance is 0.0940 and perceived brightness is 38%, so white text on it reaches 7.29:1.

Should I use black or white text on #6f28cf?

White. It scores 7.29:1 against #6f28cf, versus 2.88:1 for black — AAA at any size.

What is the complementary color of #6f28cf?

#88CF28 sits directly opposite on the wheel. Softer options are the split-complements #CFC228 and #35CF28, which give the same contrast with far less vibration.

What colors go well with #6f28cf?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6D4B9B for secondary text, #96AF1D as an accent and #39156B for hover and pressed states. For a palette, the analogous pair #2835CF and #C228CF stays calm, while #88CF28 is the loudest partner.

What is #6f28cf in CMYK for printing?

cmyk(46%, 81%, 0%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #6f28cf 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 #AC28CF; nudged cooler, #3026D1.

Work with #6f28cf in the Color Lab