Skip to content

#8f26eb

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

RGB
143, 38, 235
HSL
272°, 83%, 54%
CMYK
39, 84, 0, 8
Luminance
0.1322

At a glance

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

Hex
#8f26eb
Hue
272°
violet
Saturation
83%
electric
Lightness
54%
balanced
Brightness
92%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1322
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.76:1
Closest name
Blue Violet
ΔE2000 1.3
Where it sits
Hue272° of 360°
Saturation83%
Lightness54%
Temperature
Warm ← → Cool66% 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#8f26eb
RGBrgb(143, 38, 235)
HSLhsl(272, 83%, 54%)
CMYKcmyk(39%, 84%, 0%, 8%)
LABlab(43.1 74.0 -78.4)
LCHlch(43.1 107.8 313.4)
OKLCHoklch(0.544 0.263 301.6)
Decimal9381611
Display P3color(display-p3 0.561 0.149 0.922)

Copy-ready code

/* CSS */
color: #8f26eb;
background-color: #8f26eb;
/* Tailwind (arbitrary) */
class="text-[#8f26eb] bg-[#8f26eb]"
/* SCSS */
$brand: #8f26eb;
/* SwiftUI */
Color(red: 0.561, green: 0.149, blue: 0.922)
/* Android */
Color.parseColor("#8f26eb")
/* Flutter */
Color(0xFF8F26EB)
/* Python / OpenCV (BGR) */
(235, 38, 143)

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 #8f26eb · 5.76:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.76:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.64:1
AA fail · AA large pass · AAA fail
Reading the other direction: #8f26eb as text scores 5.76:1 on white and 3.64:1 on black.

Accessibility — WCAG contrast

Aa
#8f26eb on white: 5.76:1
AA ✓ pass · AA-large · AAA
Aa
#8f26eb on black: 3.64:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065F0
deuteranopia · #0065E7
tritanopia · #7A618D

Color scale — 50 to 950

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

#F8F2FC
#F0E6FA
#DFC6F6
#CA98F6
#B065F1
#8f26eb
#8115E0
#6C11BB
#560E95
#400E6C
#280943
Base = 500Lightest = 50 · #F8F2FCDarkest = 950 · #280943
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F0E6FA;
  --brand-200: #DFC6F6;
  --brand-300: #CA98F6;
  --brand-400: #B065F1;
  --brand-500: #8f26eb;
  --brand-600: #8115E0;
  --brand-700: #6C11BB;
  --brand-800: #560E95;
  --brand-900: #400E6C;
  --brand-950: #280943;
  --brand: #8f26eb;
  --brand-ink: #ffffff;
}

Colors that work with #8f26eb

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#F8F4FA
Tinted page background
Border#D8C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#8CBF0D
Second voice, not a rival
Dark variant#430B75
Hover, pressed, headers
Light variant#F3E8FD
Selected rows, tints
Dark surface#1D1424
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 #8f26eb

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
  • 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#82EB26
Analogous left#2C26EB
Analogous right#EB26E4
Split-complement 1#E4EB26
Split-complement 2#26EB2C
Triadic 1#EB8F26
Triadic 2#26EB8F
Tetradic#EB2C26

RGB percentages

Red56.1%
Green14.9%
Blue92.2%

CMYK percentages

Cyan39.1%
Magenta83.8%
Yellow0.0%
Key (black)7.8%

Color previews

#8f26eb text on a black background

contrast 3.64:1

Card sample

#8f26eb text on a white background

contrast 5.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 38, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 38, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f26eb;
background: linear-gradient(135deg, #8f26eb, #EB26C4);

Monochromatic scale

Palettes built from #8f26eb

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.

#8f26eb 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#8f26eb, answered

What color is #8f26eb?

#8f26eb is a balanced electric violet, closest to Blue Violet (ΔE2000 1.3). It sits at 272° on the hue wheel with 83% saturation and 54% lightness, which reads as cool.

What is the RGB value of #8f26eb?

rgb(143, 38, 235) — 143 red, 38 green and 235 blue out of 255, or 56.1% / 14.9% / 92.2% by channel.

Is #8f26eb a light or a dark color?

It is a dark color. Relative luminance is 0.1322 and perceived brightness is 45%, so white text on it reaches 5.76:1.

Should I use black or white text on #8f26eb?

White. It scores 5.76:1 against #8f26eb, versus 3.64:1 for black — AA at any size.

What is the complementary color of #8f26eb?

#82EB26 sits directly opposite on the wheel. Softer options are the split-complements #E4EB26 and #26EB2C, which give the same contrast with far less vibration.

What colors go well with #8f26eb?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #8CBF0D as an accent and #430B75 for hover and pressed states. For a palette, the analogous pair #2C26EB and #EB26E4 stays calm, while #82EB26 is the loudest partner.

What is #8f26eb in CMYK for printing?

cmyk(39%, 84%, 0%, 8%). 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 #8f26eb warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D726EB; nudged cooler, #4524ED.

Work with #8f26eb in the Color Lab