Skip to content

#8f1cdf

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

RGB
143, 28, 223
HSL
275°, 78%, 49%
CMYK
36, 87, 0, 13
Luminance
0.1200

At a glance

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

Hex
#8f1cdf
Hue
275°
violet
Saturation
78%
electric
Lightness
49%
balanced
Brightness
87%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1200
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.18:1
Closest name
Blue Violet
ΔE2000 1.7
Where it sits
Hue275° of 360°
Saturation78%
Lightness49%
Temperature
Warm ← → Cool64% 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#8f1cdf
RGBrgb(143, 28, 223)
HSLhsl(275, 78%, 49%)
CMYKcmyk(36%, 87%, 0%, 13%)
LABlab(41.2 74.0 -74.6)
LCHlch(41.2 105.1 314.8)
OKLCHoklch(0.528 0.259 304.6)
Decimal9379039
Display P3color(display-p3 0.561 0.110 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8f1cdf on white: 6.18:1
AA ✓ pass · AA-large · AAA
Aa
#8f1cdf on black: 3.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005FE4
deuteranopia · #0061DC
tritanopia · #7F5885

Color scale — 50 to 950

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

#F8F3FC
#F1E6F9
#E2C7F5
#CF9BF2
#B769EC
#9E38E6
#8f1cdf
#7417B5
#5D1291
#451169
#2B0B42
Base = 600Lightest = 50 · #F8F3FCDarkest = 950 · #2B0B42
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F1E6F9;
  --brand-200: #E2C7F5;
  --brand-300: #CF9BF2;
  --brand-400: #B769EC;
  --brand-500: #9E38E6;
  --brand-600: #8f1cdf;
  --brand-700: #7417B5;
  --brand-800: #5D1291;
  --brand-900: #451169;
  --brand-950: #2B0B42;
  --brand: #8f1cdf;
  --brand-ink: #ffffff;
}

Colors that work with #8f1cdf

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#DAC0ED
Hairlines and dividers
Muted text#7A4B9B
Captions on the surface
Accent#80B913
Second voice, not a rival
Dark variant#490E71
Hover, pressed, headers
Light variant#F4E8FC
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 #8f1cdf

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#6CDF1C
Analogous left#2E1CDF
Analogous right#DF1CCD
Split-complement 1#CDDF1C
Split-complement 2#1CDF2E
Triadic 1#DF8F1C
Triadic 2#1CDF8F
Tetradic#DF2E1C

RGB percentages

Red56.1%
Green11.0%
Blue87.5%

CMYK percentages

Cyan35.9%
Magenta87.4%
Yellow0.0%
Key (black)12.5%

Color previews

#8f1cdf text on a black background

contrast 3.40:1

Card sample

#8f1cdf text on a white background

contrast 6.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f1cdf

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.

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

#8f1cdf, answered

What color is #8f1cdf?

#8f1cdf is a balanced electric violet, closest to Blue Violet (ΔE2000 1.7). It sits at 275° on the hue wheel with 78% saturation and 49% lightness, which reads as cool.

What is the RGB value of #8f1cdf?

rgb(143, 28, 223) — 143 red, 28 green and 223 blue out of 255, or 56.1% / 11% / 87.5% by channel.

Is #8f1cdf a light or a dark color?

It is a dark color. Relative luminance is 0.1200 and perceived brightness is 43%, so white text on it reaches 6.18:1.

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

White. It scores 6.18:1 against #8f1cdf, versus 3.40:1 for black — AA at any size.

What is the complementary color of #8f1cdf?

#6CDF1C sits directly opposite on the wheel. Softer options are the split-complements #CDDF1C and #1CDF2E, which give the same contrast with far less vibration.

What colors go well with #8f1cdf?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #7A4B9B for secondary text, #80B913 as an accent and #490E71 for hover and pressed states. For a palette, the analogous pair #2E1CDF and #DF1CCD stays calm, while #6CDF1C is the loudest partner.

What is #8f1cdf in CMYK for printing?

cmyk(36%, 87%, 0%, 13%). 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 #8f1cdf warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D61CDF; nudged cooler, #4619E1.

Work with #8f1cdf in the Color Lab