Skip to content

#a864f3

a light, electric violet · cool · closest name: Medium Purple

RGB
168, 100, 243
HSL
269°, 86%, 67%
CMYK
31, 59, 0, 5
Luminance
0.2391

At a glance

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

Hex
#a864f3
Hue
269°
violet
Saturation
86%
electric
Lightness
67%
light
Brightness
95%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2391
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.78:1
Closest name
Medium Purple
ΔE2000 5.6
Where it sits
Hue269° of 360°
Saturation86%
Lightness67%
Temperature
Warm ← → Cool68% 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#a864f3
RGBrgb(168, 100, 243)
HSLhsl(269, 86%, 67%)
CMYKcmyk(31%, 59%, 0%, 5%)
LABlab(56.0 54.4 -61.8)
LCHlch(56.0 82.3 311.3)
OKLCHoklch(0.644 0.208 302.9)
Decimal11035891
Display P3color(display-p3 0.659 0.392 0.953)

Copy-ready code

/* CSS */
color: #a864f3;
background-color: #a864f3;
/* Tailwind (arbitrary) */
class="text-[#a864f3] bg-[#a864f3]"
/* SCSS */
$brand: #a864f3;
/* SwiftUI */
Color(red: 0.659, green: 0.392, blue: 0.953)
/* Android */
Color.parseColor("#a864f3")
/* Flutter */
Color(0xFFA864F3)
/* Python / OpenCV (BGR) */
(243, 100, 168)

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

Accessibility — WCAG contrast

Aa
#a864f3 on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#a864f3 on black: 5.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #1A85F8
deuteranopia · #3F86F0
tritanopia · #9A81A2

Color scale — 50 to 950

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

#F7F2FD
#EFE5FA
#DDC5F7
#C497F7
#a864f3
#8A2FEF
#7512E3
#620FBD
#4E0C97
#3B0D6D
#250844
Base = 400Lightest = 50 · #F7F2FDDarkest = 950 · #250844
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE5FA;
  --brand-200: #DDC5F7;
  --brand-300: #C497F7;
  --brand-400: #a864f3;
  --brand-500: #8A2FEF;
  --brand-600: #7512E3;
  --brand-700: #620FBD;
  --brand-800: #4E0C97;
  --brand-900: #3B0D6D;
  --brand-950: #250844;
  --brand: #a864f3;
  --brand-ink: #000000;
}

Colors that work with #a864f3

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F7F4FA
Tinted page background
Border#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#99C10B
Second voice, not a rival
Dark variant#3D0976
Hover, pressed, headers
Light variant#F2E7FD
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 #a864f3

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White 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#AFF364
Analogous left#6468F3
Analogous right#EF64F3
Split-complement 1#F3EF64
Split-complement 2#68F364
Triadic 1#F3A864
Triadic 2#64F3A8
Tetradic#F36468

RGB percentages

Red65.9%
Green39.2%
Blue95.3%

CMYK percentages

Cyan30.9%
Magenta58.8%
Yellow0.0%
Key (black)4.7%

Color previews

#a864f3 text on a black background

contrast 5.78:1

Card sample

#a864f3 text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(168, 100, 243, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 100, 243, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a864f3;
background: linear-gradient(135deg, #a864f3, #F364DF);

Monochromatic scale

Palettes built from #a864f3

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.

#a864f3 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#a864f3, answered

What color is #a864f3?

#a864f3 is a light electric violet, closest to Medium Purple (ΔE2000 5.6). It sits at 269° on the hue wheel with 86% saturation and 67% lightness, which reads as cool.

What is the RGB value of #a864f3?

rgb(168, 100, 243) — 168 red, 100 green and 243 blue out of 255, or 65.9% / 39.2% / 95.3% by channel.

Is #a864f3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2391 and perceived brightness is 57%, so black text on it reaches 5.78:1.

Should I use black or white text on #a864f3?

Black. It scores 5.78:1 against #a864f3, versus 3.63:1 for white — AA at any size.

What is the complementary color of #a864f3?

#AFF364 sits directly opposite on the wheel. Softer options are the split-complements #F3EF64 and #68F364, which give the same contrast with far less vibration.

What colors go well with #a864f3?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #99C10B as an accent and #3D0976 for hover and pressed states. For a palette, the analogous pair #6468F3 and #EF64F3 stays calm, while #AFF364 is the loudest partner.

What is #a864f3 in CMYK for printing?

cmyk(31%, 59%, 0%, 5%). 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 #a864f3 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DC64F3; nudged cooler, #7263F5.

Work with #a864f3 in the Color Lab