Skip to content

#a68df2

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

RGB
166, 141, 242
HSL
255°, 80%, 75%
CMYK
31, 42, 0, 5
Luminance
0.3357

At a glance

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

Hex
#a68df2
Hue
255°
blue
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
64%
weighted brightness
Luminance
0.3357
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.71:1
Closest name
Medium Purple
ΔE2000 8.8
Where it sits
Hue255° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool75% 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#a68df2
RGBrgb(166, 141, 242)
HSLhsl(255, 80%, 75%)
CMYKcmyk(31%, 42%, 0%, 5%)
LABlab(64.6 31.1 -47.5)
LCHlch(64.6 56.8 303.2)
OKLCHoklch(0.707 0.145 293.7)
Decimal10915314
Display P3color(display-p3 0.651 0.553 0.949)

Copy-ready code

/* CSS */
color: #a68df2;
background-color: #a68df2;
/* Tailwind (arbitrary) */
class="text-[#a68df2] bg-[#a68df2]"
/* SCSS */
$brand: #a68df2;
/* SwiftUI */
Color(red: 0.651, green: 0.553, blue: 0.949)
/* Android */
Color.parseColor("#a68df2")
/* Flutter */
Color(0xFFA68DF2)
/* Python / OpenCV (BGR) */
(242, 141, 166)

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

Accessibility — WCAG contrast

Aa
#a68df2 on white: 2.72:1
AA ✗ fail · AA-large · AAA
Aa
#a68df2 on black: 7.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6E9EF6
deuteranopia · #729BEF
tritanopia · #959FB4

Color scale — 50 to 950

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

#F5F3FC
#EBE6F9
#D2C7F5
#a68df2
#8968EE
#6236E8
#4919DC
#3D15B7
#311192
#27106A
#180A42
Base = 300Lightest = 50 · #F5F3FCDarkest = 950 · #180A42
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EBE6F9;
  --brand-200: #D2C7F5;
  --brand-300: #a68df2;
  --brand-400: #8968EE;
  --brand-500: #6236E8;
  --brand-600: #4919DC;
  --brand-700: #3D15B7;
  --brand-800: #311192;
  --brand-900: #27106A;
  --brand-950: #180A42;
  --brand: #a68df2;
  --brand-ink: #000000;
}

Colors that work with #a68df2

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#F6F4FA
Tinted page background
Border#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#BCBA10
Second voice, not a rival
Dark variant#260D72
Hover, pressed, headers
Light variant#EDE8FC
Selected rows, tints
Dark surface#181424
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 #a68df2

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#D9F28D
Analogous left#8DA6F2
Analogous right#D98DF2
Split-complement 1#F2D98D
Split-complement 2#A6F28D
Triadic 1#F2A68D
Triadic 2#8DF2A6
Tetradic#F28DA6

RGB percentages

Red65.1%
Green55.3%
Blue94.9%

CMYK percentages

Cyan31.4%
Magenta41.7%
Yellow0.0%
Key (black)5.1%

Color previews

#a68df2 text on a black background

contrast 7.71:1

Card sample

#a68df2 text on a white background

contrast 2.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(166, 141, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(166, 141, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a68df2;
background: linear-gradient(135deg, #a68df2, #E98DF2);

Monochromatic scale

Palettes built from #a68df2

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.

#a68df2 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#a68df2, answered

What color is #a68df2?

#a68df2 is a light electric blue, closest to Medium Purple (ΔE2000 8.8). It sits at 255° on the hue wheel with 80% saturation and 75% lightness, which reads as cool.

What is the RGB value of #a68df2?

rgb(166, 141, 242) — 166 red, 141 green and 242 blue out of 255, or 65.1% / 55.3% / 94.9% by channel.

Is #a68df2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3357 and perceived brightness is 64%, so black text on it reaches 7.71:1.

Should I use black or white text on #a68df2?

Black. It scores 7.71:1 against #a68df2, versus 2.72:1 for white — AAA at any size.

What is the complementary color of #a68df2?

#D9F28D sits directly opposite on the wheel. Softer options are the split-complements #F2D98D and #A6F28D, which give the same contrast with far less vibration.

What colors go well with #a68df2?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #BCBA10 as an accent and #260D72 for hover and pressed states. For a palette, the analogous pair #8DA6F2 and #D98DF2 stays calm, while #D9F28D is the loudest partner.

What is #a68df2 in CMYK for printing?

cmyk(31%, 42%, 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 #a68df2 warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB8DF2; nudged cooler, #8C98F3.

Work with #a68df2 in the Color Lab