Skip to content

#af91eb

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

RGB
175, 145, 235
HSL
260°, 69%, 75%
CMYK
26, 38, 0, 8
Luminance
0.3536

At a glance

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

Hex
#af91eb
Hue
260°
violet
Saturation
69%
vivid
Lightness
75%
light
Brightness
92%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3536
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
8.07:1
Closest name
Medium Purple
ΔE2000 10.1
Where it sits
Hue260° of 360°
Saturation69%
Lightness75%
Temperature
Warm ← → Cool72% 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#af91eb
RGBrgb(175, 145, 235)
HSLhsl(260, 69%, 75%)
CMYKcmyk(26%, 38%, 0%, 8%)
LABlab(66.0 29.6 -41.4)
LCHlch(66.0 50.9 305.6)
OKLCHoklch(0.719 0.131 298.4)
Decimal11506155
Display P3color(display-p3 0.686 0.569 0.922)

Copy-ready code

/* CSS */
color: #af91eb;
background-color: #af91eb;
/* Tailwind (arbitrary) */
class="text-[#af91eb] bg-[#af91eb]"
/* SCSS */
$brand: #af91eb;
/* SwiftUI */
Color(red: 0.686, green: 0.569, blue: 0.922)
/* Android */
Color.parseColor("#af91eb")
/* Flutter */
Color(0xFFAF91EB)
/* Python / OpenCV (BGR) */
(235, 145, 175)

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

Accessibility — WCAG contrast

Aa
#af91eb on white: 2.60:1
AA ✗ fail · AA-large · AAA
Aa
#af91eb on black: 8.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7AA1EE
deuteranopia · #7FA0E9
tritanopia · #A3A0B3

Color scale — 50 to 950

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

#F6F3FB
#EDE7F8
#D7CAF2
#af91eb
#9771E5
#7541DC
#5E26CF
#4E1FAD
#3F198A
#301664
#1E0E3F
Base = 300Lightest = 50 · #F6F3FBDarkest = 950 · #1E0E3F
:root {
  --brand-50: #F6F3FB;
  --brand-100: #EDE7F8;
  --brand-200: #D7CAF2;
  --brand-300: #af91eb;
  --brand-400: #9771E5;
  --brand-500: #7541DC;
  --brand-600: #5E26CF;
  --brand-700: #4E1FAD;
  --brand-800: #3F198A;
  --brand-900: #301664;
  --brand-950: #1E0E3F;
  --brand: #af91eb;
  --brand-ink: #000000;
}

Colors that work with #af91eb

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#CFC0ED
Hairlines and dividers
Muted text#654B9B
Captions on the surface
Accent#A5B11B
Second voice, not a rival
Dark variant#31146C
Hover, pressed, headers
Light variant#EFE9FB
Selected rows, tints
Dark surface#191424
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 #af91eb

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#CDEB91
Analogous left#91A0EB
Analogous right#DC91EB
Split-complement 1#EBDC91
Split-complement 2#A0EB91
Triadic 1#EBAF91
Triadic 2#91EBAF
Tetradic#EB91A0

RGB percentages

Red68.6%
Green56.9%
Blue92.2%

CMYK percentages

Cyan25.5%
Magenta38.3%
Yellow0.0%
Key (black)7.8%

Color previews

#af91eb text on a black background

contrast 8.07:1

Card sample

#af91eb text on a white background

contrast 2.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 145, 235, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 145, 235, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af91eb;
background: linear-gradient(135deg, #af91eb, #EB91EB);

Monochromatic scale

Palettes built from #af91eb

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.

#af91eb 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

Converts to four-color process without much drama. Proof it anyway.

#af91eb, answered

What color is #af91eb?

#af91eb is a light vivid violet, closest to Medium Purple (ΔE2000 10.1). It sits at 260° on the hue wheel with 69% saturation and 75% lightness, which reads as cool.

What is the RGB value of #af91eb?

rgb(175, 145, 235) — 175 red, 145 green and 235 blue out of 255, or 68.6% / 56.9% / 92.2% by channel.

Is #af91eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3536 and perceived brightness is 65%, so black text on it reaches 8.07:1.

Should I use black or white text on #af91eb?

Black. It scores 8.07:1 against #af91eb, versus 2.60:1 for white — AAA at any size.

What is the complementary color of #af91eb?

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

What colors go well with #af91eb?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #654B9B for secondary text, #A5B11B as an accent and #31146C for hover and pressed states. For a palette, the analogous pair #91A0EB and #DC91EB stays calm, while #CDEB91 is the loudest partner.

What is #af91eb in CMYK for printing?

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

Is #af91eb warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D091EB; nudged cooler, #9093EC.

Work with #af91eb in the Color Lab