Skip to content

#862dbf

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

RGB
134, 45, 191
HSL
277°, 62%, 46%
CMYK
30, 76, 0, 25
Luminance
0.1071

At a glance

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

Hex
#862dbf
Hue
277°
violet
Saturation
62%
vivid
Lightness
46%
balanced
Brightness
75%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1071
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.69:1
Closest name
Dark Violet
ΔE2000 3.7
Where it sits
Hue277° of 360°
Saturation62%
Lightness46%
Temperature
Warm ← → Cool63% 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#862dbf
RGBrgb(134, 45, 191)
HSLhsl(277, 62%, 46%)
CMYKcmyk(30%, 76%, 0%, 25%)
LABlab(39.1 60.8 -59.6)
LCHlch(39.1 85.2 315.6)
OKLCHoklch(0.502 0.215 308.0)
Decimal8793535
Display P3color(display-p3 0.525 0.176 0.749)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#862dbf on white: 6.69:1
AA ✓ pass · AA-large · AAA
Aa
#862dbf on black: 3.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0059C3
deuteranopia · #005DBC
tritanopia · #7D5175

Color scale — 50 to 950

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

#F8F4FB
#F1E8F7
#E2CCF0
#CFA4EA
#B677DF
#9E49D4
#862dbf
#7427A5
#5D1F84
#451A60
#2B103C
Base = 600Lightest = 50 · #F8F4FBDarkest = 950 · #2B103C
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F1E8F7;
  --brand-200: #E2CCF0;
  --brand-300: #CFA4EA;
  --brand-400: #B677DF;
  --brand-500: #9E49D4;
  --brand-600: #862dbf;
  --brand-700: #7427A5;
  --brand-800: #5D1F84;
  --brand-900: #451A60;
  --brand-950: #2B103C;
  --brand: #862dbf;
  --brand-ink: #ffffff;
}

Colors that work with #862dbf

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#DBC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#79A923
Second voice, not a rival
Dark variant#481867
Hover, pressed, headers
Light variant#F4EAFA
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 #862dbf

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#66BF2D
Analogous left#3D2DBF
Analogous right#BF2DAF
Split-complement 1#AFBF2D
Split-complement 2#2DBF3D
Triadic 1#BF862D
Triadic 2#2DBF86
Tetradic#BF3D2D

RGB percentages

Red52.5%
Green17.6%
Blue74.9%

CMYK percentages

Cyan29.8%
Magenta76.4%
Yellow0.0%
Key (black)25.1%

Color previews

#862dbf text on a black background

contrast 3.14:1

Card sample

#862dbf text on a white background

contrast 6.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #862dbf

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.

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

#862dbf, answered

What color is #862dbf?

#862dbf is a balanced vivid violet, closest to Dark Violet (ΔE2000 3.7). It sits at 277° on the hue wheel with 62% saturation and 46% lightness, which reads as cool.

What is the RGB value of #862dbf?

rgb(134, 45, 191) — 134 red, 45 green and 191 blue out of 255, or 52.5% / 17.6% / 74.9% by channel.

Is #862dbf a light or a dark color?

It is a dark color. Relative luminance is 0.1071 and perceived brightness is 41%, so white text on it reaches 6.69:1.

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

White. It scores 6.69:1 against #862dbf, versus 3.14:1 for black — AA at any size.

What is the complementary color of #862dbf?

#66BF2D sits directly opposite on the wheel. Softer options are the split-complements #AFBF2D and #2DBF3D, which give the same contrast with far less vibration.

What colors go well with #862dbf?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7C4B9B for secondary text, #79A923 as an accent and #481867 for hover and pressed states. For a palette, the analogous pair #3D2DBF and #BF2DAF stays calm, while #66BF2D is the loudest partner.

What is #862dbf in CMYK for printing?

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

Is #862dbf warm or cool?

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

Work with #862dbf in the Color Lab