Skip to content

#af96ec

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

RGB
175, 150, 236
HSL
257°, 69%, 76%
CMYK
26, 36, 0, 8
Luminance
0.3698

At a glance

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

Hex
#af96ec
Hue
257°
violet
Saturation
69%
vivid
Lightness
76%
light
Brightness
93%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3698
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
8.40:1
Closest name
Medium Purple
ΔE2000 11.3
Where it sits
Hue257° of 360°
Saturation69%
Lightness76%
Temperature
Warm ← → Cool74% 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#af96ec
RGBrgb(175, 150, 236)
HSLhsl(257, 69%, 76%)
CMYKcmyk(26%, 36%, 0%, 8%)
LABlab(67.3 27.1 -40.0)
LCHlch(67.3 48.3 304.1)
OKLCHoklch(0.729 0.124 296.6)
Decimal11507436
Display P3color(display-p3 0.686 0.588 0.925)

Copy-ready code

/* CSS */
color: #af96ec;
background-color: #af96ec;
/* Tailwind (arbitrary) */
class="text-[#af96ec] bg-[#af96ec]"
/* SCSS */
$brand: #af96ec;
/* SwiftUI */
Color(red: 0.686, green: 0.588, blue: 0.925)
/* Android */
Color.parseColor("#af96ec")
/* Flutter */
Color(0xFFAF96EC)
/* Python / OpenCV (BGR) */
(236, 150, 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 #af96ec · 8.40:1
Use #000000AAA at every size.
Aa
White text · 2.50:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.40:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #af96ec as text scores 2.50:1 on white and 8.40:1 on black.

Accessibility — WCAG contrast

Aa
#af96ec on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#af96ec on black: 8.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #80A4EF
deuteranopia · #83A3EA
tritanopia · #A3A5B6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af96ec 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
#ECE7F8
#D5CAF2
#af96ec
#9270E5
#6E41DD
#5725CF
#481FAD
#3A198A
#2D1664
#1C0E3F
Base = 300Lightest = 50 · #F6F3FBDarkest = 950 · #1C0E3F
:root {
  --brand-50: #F6F3FB;
  --brand-100: #ECE7F8;
  --brand-200: #D5CAF2;
  --brand-300: #af96ec;
  --brand-400: #9270E5;
  --brand-500: #6E41DD;
  --brand-600: #5725CF;
  --brand-700: #481FAD;
  --brand-800: #3A198A;
  --brand-900: #2D1664;
  --brand-950: #1C0E3F;
  --brand: #af96ec;
  --brand-ink: #000000;
}

Colors that work with #af96ec

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#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#ABB11B
Second voice, not a rival
Dark variant#2D146C
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 #af96ec

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#D3EC96
Analogous left#96A8EC
Analogous right#DA96EC
Split-complement 1#ECDA96
Split-complement 2#A8EC96
Triadic 1#ECAF96
Triadic 2#96ECAF
Tetradic#EC96A8

RGB percentages

Red68.6%
Green58.8%
Blue92.5%

CMYK percentages

Cyan25.8%
Magenta36.4%
Yellow0.0%
Key (black)7.5%

Color previews

#af96ec text on a black background

contrast 8.40:1

Card sample

#af96ec text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af96ec

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.

#af96ec 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.

#af96ec, answered

What color is #af96ec?

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

What is the RGB value of #af96ec?

rgb(175, 150, 236) — 175 red, 150 green and 236 blue out of 255, or 68.6% / 58.8% / 92.5% by channel.

Is #af96ec a light or a dark color?

It is a mid-tone. Relative luminance is 0.3698 and perceived brightness is 66%, so black text on it reaches 8.40:1.

Should I use black or white text on #af96ec?

Black. It scores 8.40:1 against #af96ec, versus 2.50:1 for white — AAA at any size.

What is the complementary color of #af96ec?

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

What colors go well with #af96ec?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #ABB11B as an accent and #2D146C for hover and pressed states. For a palette, the analogous pair #96A8EC and #DA96EC stays calm, while #D3EC96 is the loudest partner.

What is #af96ec in CMYK for printing?

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

Is #af96ec warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF96EC; nudged cooler, #959CED.

Work with #af96ec in the Color Lab