Skip to content

#8f2ce2

a balanced, electric violet · cool · “Blue Violet”

RGB
143, 44, 226
HSL
273°, 76%, 53%
CMYK
37, 81, 0, 11
Luminance
0.1313

At a glance

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

Hex
#8f2ce2
Hue
273°
violet
Saturation
76%
electric
Lightness
53%
balanced
Brightness
89%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1313
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.79:1
Closest name
Blue Violet
ΔE2000 0.9
Where it sits
Hue273° of 360°
Saturation76%
Lightness53%
Temperature
Warm ← → Cool65% 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#8f2ce2
RGBrgb(143, 44, 226)
HSLhsl(273, 76%, 53%)
CMYKcmyk(37%, 81%, 0%, 11%)
LABlab(43.0 70.2 -73.5)
LCHlch(43.0 101.6 313.7)
OKLCHoklch(0.540 0.250 303.1)
Decimal9383138
Display P3color(display-p3 0.561 0.173 0.886)

Copy-ready code

/* CSS */
color: #8f2ce2;
background-color: #8f2ce2;
/* Tailwind (arbitrary) */
class="text-[#8f2ce2] bg-[#8f2ce2]"
/* SCSS */
$brand: #8f2ce2;
/* SwiftUI */
Color(red: 0.561, green: 0.173, blue: 0.886)
/* Android */
Color.parseColor("#8f2ce2")
/* Flutter */
Color(0xFF8F2CE2)
/* Python / OpenCV (BGR) */
(226, 44, 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 #8f2ce2 · 5.79:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.79:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.63:1
AA fail · AA large pass · AAA fail
Reading the other direction: #8f2ce2 as text scores 5.79:1 on white and 3.63:1 on black.

Accessibility — WCAG contrast

Aa
#8f2ce2 on white: 5.79:1
AA ✓ pass · AA-large · AAA
Aa
#8f2ce2 on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0064E7
deuteranopia · #0065DF
tritanopia · #7E5F89

Color scale — 50 to 950

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

#F8F3FC
#F0E7F9
#E0C8F4
#CB9CF1
#B06BEB
#8f2ce2
#821ED7
#6D19B3
#57148F
#411368
#290C41
Base = 500Lightest = 50 · #F8F3FCDarkest = 950 · #290C41
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F0E7F9;
  --brand-200: #E0C8F4;
  --brand-300: #CB9CF1;
  --brand-400: #B06BEB;
  --brand-500: #8f2ce2;
  --brand-600: #821ED7;
  --brand-700: #6D19B3;
  --brand-800: #57148F;
  --brand-900: #411368;
  --brand-950: #290C41;
  --brand: #8f2ce2;
  --brand-ink: #ffffff;
}

Colors that work with #8f2ce2

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#764B9B
Captions on the surface
Accent#88B814
Second voice, not a rival
Dark variant#440F70
Hover, pressed, headers
Light variant#F3E9FC
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 #8f2ce2

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#7FE22C
Analogous left#342CE2
Analogous right#E22CDA
Split-complement 1#DAE22C
Split-complement 2#2CE234
Triadic 1#E28F2C
Triadic 2#2CE28F
Tetradic#E2342C

RGB percentages

Red56.1%
Green17.3%
Blue88.6%

CMYK percentages

Cyan36.7%
Magenta80.5%
Yellow0.0%
Key (black)11.4%

Color previews

#8f2ce2 text on a black background

contrast 3.63:1

Card sample

#8f2ce2 text on a white background

contrast 5.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f2ce2

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.

#8f2ce2 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.

#8f2ce2, answered

What color is #8f2ce2?

#8f2ce2 is a balanced electric violet — the CSS keyword Blue Violet. It sits at 273° on the hue wheel with 76% saturation and 53% lightness, which reads as cool.

What is the RGB value of #8f2ce2?

rgb(143, 44, 226) — 143 red, 44 green and 226 blue out of 255, or 56.1% / 17.3% / 88.6% by channel.

Is #8f2ce2 a light or a dark color?

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

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

White. It scores 5.79:1 against #8f2ce2, versus 3.63:1 for black — AA at any size.

What is the complementary color of #8f2ce2?

#7FE22C sits directly opposite on the wheel. Softer options are the split-complements #DAE22C and #2CE234, which give the same contrast with far less vibration.

What colors go well with #8f2ce2?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #88B814 as an accent and #440F70 for hover and pressed states. For a palette, the analogous pair #342CE2 and #E22CDA stays calm, while #7FE22C is the loudest partner.

What is #8f2ce2 in CMYK for printing?

cmyk(37%, 81%, 0%, 11%). 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 #8f2ce2 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D22CE2; nudged cooler, #4A29E4.

Work with #8f2ce2 in the Color Lab