Skip to content

#8a2fdf

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

RGB
138, 47, 223
HSL
271°, 73%, 53%
CMYK
38, 79, 0, 13
Luminance
0.1276

At a glance

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

Hex
#8a2fdf
Hue
271°
violet
Saturation
73%
vivid
Lightness
53%
balanced
Brightness
87%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1276
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.91:1
Closest name
Blue Violet
ΔE2000 0.6
Where it sits
Hue271° of 360°
Saturation73%
Lightness53%
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#8a2fdf
RGBrgb(138, 47, 223)
HSLhsl(271, 73%, 53%)
CMYKcmyk(38%, 79%, 0%, 13%)
LABlab(42.4 67.8 -72.7)
LCHlch(42.4 99.4 313.0)
OKLCHoklch(0.534 0.244 301.7)
Decimal9056223
Display P3color(display-p3 0.541 0.184 0.875)

Copy-ready code

/* CSS */
color: #8a2fdf;
background-color: #8a2fdf;
/* Tailwind (arbitrary) */
class="text-[#8a2fdf] bg-[#8a2fdf]"
/* SCSS */
$brand: #8a2fdf;
/* SwiftUI */
Color(red: 0.541, green: 0.184, blue: 0.875)
/* Android */
Color.parseColor("#8a2fdf")
/* Flutter */
Color(0xFF8A2FDF)
/* Python / OpenCV (BGR) */
(223, 47, 138)

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

Accessibility — WCAG contrast

Aa
#8a2fdf on white: 5.91:1
AA ✓ pass · AA-large · AAA
Aa
#8a2fdf on black: 3.55:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063E4
deuteranopia · #0063DC
tritanopia · #775F88

Color scale — 50 to 950

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

#F7F3FC
#F0E7F8
#DFC8F3
#C89EF0
#AD6DE9
#8a2fdf
#7D21D4
#681BB1
#54168D
#3F1466
#270C40
Base = 500Lightest = 50 · #F7F3FCDarkest = 950 · #270C40
:root {
  --brand-50: #F7F3FC;
  --brand-100: #F0E7F8;
  --brand-200: #DFC8F3;
  --brand-300: #C89EF0;
  --brand-400: #AD6DE9;
  --brand-500: #8a2fdf;
  --brand-600: #7D21D4;
  --brand-700: #681BB1;
  --brand-800: #54168D;
  --brand-900: #3F1466;
  --brand-950: #270C40;
  --brand: #8a2fdf;
  --brand-ink: #ffffff;
}

Colors that work with #8a2fdf

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#D7C0ED
Hairlines and dividers
Muted text#744B9B
Captions on the surface
Accent#8BB517
Second voice, not a rival
Dark variant#41116E
Hover, pressed, headers
Light variant#F3E9FC
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 #8a2fdf

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#84DF2F
Analogous left#322FDF
Analogous right#DF2FDC
Split-complement 1#DCDF2F
Split-complement 2#2FDF32
Triadic 1#DF8A2F
Triadic 2#2FDF8A
Tetradic#DF322F

RGB percentages

Red54.1%
Green18.4%
Blue87.5%

CMYK percentages

Cyan38.1%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#8a2fdf text on a black background

contrast 3.55:1

Card sample

#8a2fdf text on a white background

contrast 5.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a2fdf

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.

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

#8a2fdf, answered

What color is #8a2fdf?

#8a2fdf is a balanced vivid violet — the CSS keyword Blue Violet. It sits at 271° on the hue wheel with 73% saturation and 53% lightness, which reads as cool.

What is the RGB value of #8a2fdf?

rgb(138, 47, 223) — 138 red, 47 green and 223 blue out of 255, or 54.1% / 18.4% / 87.5% by channel.

Is #8a2fdf a light or a dark color?

It is a dark color. Relative luminance is 0.1276 and perceived brightness is 44%, so white text on it reaches 5.91:1.

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

White. It scores 5.91:1 against #8a2fdf, versus 3.55:1 for black — AA at any size.

What is the complementary color of #8a2fdf?

#84DF2F sits directly opposite on the wheel. Softer options are the split-complements #DCDF2F and #2FDF32, which give the same contrast with far less vibration.

What colors go well with #8a2fdf?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #8BB517 as an accent and #41116E for hover and pressed states. For a palette, the analogous pair #322FDF and #DF2FDC stays calm, while #84DF2F is the loudest partner.

What is #8a2fdf in CMYK for printing?

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

Is #8a2fdf 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 #CA2FDF; nudged cooler, #482CE1.

Work with #8a2fdf in the Color Lab