Skip to content

#8a2db6

a dark, vivid violet · cool · closest name: Dark Orchid

RGB
138, 45, 182
HSL
281°, 60%, 45%
CMYK
24, 75, 0, 29
Luminance
0.1066

At a glance

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

Hex
#8a2db6
Hue
281°
violet
Saturation
60%
vivid
Lightness
45%
dark
Brightness
71%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1066
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.71:1
Closest name
Dark Orchid
ΔE2000 4.3
Where it sits
Hue281° of 360°
Saturation60%
Lightness45%
Temperature
Warm ← → Cool61% 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#8a2db6
RGBrgb(138, 45, 182)
HSLhsl(281, 60%, 45%)
CMYKcmyk(24%, 75%, 0%, 29%)
LABlab(39.0 59.6 -54.4)
LCHlch(39.0 80.8 317.6)
OKLCHoklch(0.501 0.208 312.2)
Decimal9055670
Display P3color(display-p3 0.541 0.176 0.714)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8a2db6 on white: 6.71:1
AA ✓ pass · AA-large · AAA
Aa
#8a2db6 on black: 3.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0057BA
deuteranopia · #185EB3
tritanopia · #854D70

Color scale — 50 to 950

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

#F9F4FB
#F2E8F7
#E4CCEF
#D3A5E9
#BD78DE
#A74BD3
#8a2db6
#7C28A4
#632083
#491B5F
#2E113C
Base = 600Lightest = 50 · #F9F4FBDarkest = 950 · #2E113C
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F2E8F7;
  --brand-200: #E4CCEF;
  --brand-300: #D3A5E9;
  --brand-400: #BD78DE;
  --brand-500: #A74BD3;
  --brand-600: #8a2db6;
  --brand-700: #7C28A4;
  --brand-800: #632083;
  --brand-900: #491B5F;
  --brand-950: #2E113C;
  --brand: #8a2db6;
  --brand-ink: #ffffff;
}

Colors that work with #8a2db6

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#DEC0ED
Hairlines and dividers
Muted text#814B9B
Captions on the surface
Accent#6FA824
Second voice, not a rival
Dark variant#4D1966
Hover, pressed, headers
Light variant#F5EBFA
Selected rows, tints
Dark surface#1F1424
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 #8a2db6

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#59B62D
Analogous left#452DB6
Analogous right#B62D9E
Split-complement 1#9EB62D
Split-complement 2#2DB645
Triadic 1#B68A2D
Triadic 2#2DB68A
Tetradic#B6452D

RGB percentages

Red54.1%
Green17.6%
Blue71.4%

CMYK percentages

Cyan24.2%
Magenta75.3%
Yellow0.0%
Key (black)28.6%

Color previews

#8a2db6 text on a black background

contrast 3.13:1

Card sample

#8a2db6 text on a white background

contrast 6.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8a2db6

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.

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

#8a2db6, answered

What color is #8a2db6?

#8a2db6 is a dark vivid violet, closest to Dark Orchid (ΔE2000 4.3). It sits at 281° on the hue wheel with 60% saturation and 45% lightness, which reads as cool.

What is the RGB value of #8a2db6?

rgb(138, 45, 182) — 138 red, 45 green and 182 blue out of 255, or 54.1% / 17.6% / 71.4% by channel.

Is #8a2db6 a light or a dark color?

It is a dark color. Relative luminance is 0.1066 and perceived brightness is 40%, so white text on it reaches 6.71:1.

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

White. It scores 6.71:1 against #8a2db6, versus 3.13:1 for black — AA at any size.

What is the complementary color of #8a2db6?

#59B62D sits directly opposite on the wheel. Softer options are the split-complements #9EB62D and #2DB645, which give the same contrast with far less vibration.

What colors go well with #8a2db6?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #814B9B for secondary text, #6FA824 as an accent and #4D1966 for hover and pressed states. For a palette, the analogous pair #452DB6 and #B62D9E stays calm, while #59B62D is the loudest partner.

What is #8a2db6 in CMYK for printing?

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

Is #8a2db6 warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B62DB0; nudged cooler, #572BB8.

Work with #8a2db6 in the Color Lab