Skip to content

#862cac

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

RGB
134, 44, 172
HSL
282°, 59%, 42%
CMYK
22, 74, 0, 33
Luminance
0.0985

At a glance

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

Hex
#862cac
Hue
282°
violet
Saturation
59%
vivid
Lightness
42%
dark
Brightness
67%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0985
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.07:1
Closest name
Dark Violet
ΔE2000 5.8
Where it sits
Hue282° of 360°
Saturation59%
Lightness42%
Temperature
Warm ← → Cool60% 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#862cac
RGBrgb(134, 44, 172)
HSLhsl(282, 59%, 42%)
CMYKcmyk(22%, 74%, 0%, 33%)
LABlab(37.6 57.2 -50.8)
LCHlch(37.6 76.5 318.4)
OKLCHoklch(0.487 0.198 313.6)
Decimal8793260
Display P3color(display-p3 0.525 0.173 0.675)

Copy-ready code

/* CSS */
color: #862cac;
background-color: #862cac;
/* Tailwind (arbitrary) */
class="text-[#862cac] bg-[#862cac]"
/* SCSS */
$brand: #862cac;
/* SwiftUI */
Color(red: 0.525, green: 0.173, blue: 0.675)
/* Android */
Color.parseColor("#862cac")
/* Flutter */
Color(0xFF862CAC)
/* Python / OpenCV (BGR) */
(172, 44, 134)

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 #862cac · 7.07:1
Use #ffffffAAA at every size.
Aa
White text · 7.07:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.97:1
AA fail · AA large fail · AAA fail
Reading the other direction: #862cac as text scores 7.07:1 on white and 2.97:1 on black.

Accessibility — WCAG contrast

Aa
#862cac on white: 7.07:1
AA ✓ pass · AA-large · AAA
Aa
#862cac on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0054B0
deuteranopia · #215AA9
tritanopia · #82486A

Color scale — 50 to 950

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

#F9F4FB
#F3E9F7
#E5CDEF
#D4A6E8
#BF79DD
#AA4CD1
#9832C3
#862cac
#652182
#4B1C5F
#2F113B
Base = 700Lightest = 50 · #F9F4FBDarkest = 950 · #2F113B
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E9F7;
  --brand-200: #E5CDEF;
  --brand-300: #D4A6E8;
  --brand-400: #BF79DD;
  --brand-500: #AA4CD1;
  --brand-600: #9832C3;
  --brand-700: #862cac;
  --brand-800: #652182;
  --brand-900: #4B1C5F;
  --brand-950: #2F113B;
  --brand: #862cac;
  --brand-ink: #ffffff;
}

Colors that work with #862cac

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#F9F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6CA626
Second voice, not a rival
Dark variant#4F1A66
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 #862cac

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
  • Text on black or near-black surfaces
  • 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#52AC2C
Analogous left#462CAC
Analogous right#AC2C92
Split-complement 1#92AC2C
Split-complement 2#2CAC46
Triadic 1#AC862C
Triadic 2#2CAC86
Tetradic#AC462C

RGB percentages

Red52.5%
Green17.3%
Blue67.5%

CMYK percentages

Cyan22.1%
Magenta74.4%
Yellow0.0%
Key (black)32.5%

Color previews

#862cac text on a black background

contrast 2.97:1

Card sample

#862cac text on a white background

contrast 7.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #862cac;
Background color
Panel with #862cac background
background-color: #862cac;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(134, 44, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(134, 44, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #862cac;
background: linear-gradient(135deg, #862cac, #AC2C7D);

Monochromatic scale

Palettes built from #862cac

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.

#862cac 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.

#862cac, answered

What color is #862cac?

#862cac is a dark vivid violet, closest to Dark Violet (ΔE2000 5.8). It sits at 282° on the hue wheel with 59% saturation and 42% lightness, which reads as cool.

What is the RGB value of #862cac?

rgb(134, 44, 172) — 134 red, 44 green and 172 blue out of 255, or 52.5% / 17.3% / 67.5% by channel.

Is #862cac a light or a dark color?

It is a dark color. Relative luminance is 0.0985 and perceived brightness is 39%, so white text on it reaches 7.07:1.

Should I use black or white text on #862cac?

White. It scores 7.07:1 against #862cac, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #862cac?

#52AC2C sits directly opposite on the wheel. Softer options are the split-complements #92AC2C and #2CAC46, which give the same contrast with far less vibration.

What colors go well with #862cac?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #6CA626 as an accent and #4F1A66 for hover and pressed states. For a palette, the analogous pair #462CAC and #AC2C92 stays calm, while #52AC2C is the loudest partner.

What is #862cac in CMYK for printing?

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

Is #862cac warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC2CA3; nudged cooler, #562AAE.

Work with #862cac in the Color Lab