Skip to content

#9f7aef

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

RGB
159, 122, 239
HSL
259°, 79%, 71%
CMYK
34, 49, 0, 6
Luminance
0.2752

At a glance

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

Hex
#9f7aef
Hue
259°
violet
Saturation
79%
electric
Lightness
71%
light
Brightness
94%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2752
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.50:1
Closest name
Medium Purple
ΔE2000 4.3
Where it sits
Hue259° of 360°
Saturation79%
Lightness71%
Temperature
Warm ← → Cool73% 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#9f7aef
RGBrgb(159, 122, 239)
HSLhsl(259, 79%, 71%)
CMYKcmyk(34%, 49%, 0%, 6%)
LABlab(59.5 39.3 -54.1)
LCHlch(59.5 66.8 306.0)
OKLCHoklch(0.667 0.170 296.1)
Decimal10451695
Display P3color(display-p3 0.624 0.478 0.937)

Copy-ready code

/* CSS */
color: #9f7aef;
background-color: #9f7aef;
/* Tailwind (arbitrary) */
class="text-[#9f7aef] bg-[#9f7aef]"
/* SCSS */
$brand: #9f7aef;
/* SwiftUI */
Color(red: 0.624, green: 0.478, blue: 0.937)
/* Android */
Color.parseColor("#9f7aef")
/* Flutter */
Color(0xFF9F7AEF)
/* Python / OpenCV (BGR) */
(239, 122, 159)

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

Accessibility — WCAG contrast

Aa
#9f7aef on white: 3.23:1
AA ✗ fail · AA-large · AAA
Aa
#9f7aef on black: 6.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5090F3
deuteranopia · #588EEC
tritanopia · #8D91A9

Color scale — 50 to 950

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

#F6F3FC
#ECE6F9
#D5C7F5
#B79BF3
#9f7aef
#6F37E7
#571ADA
#4916B6
#3A1292
#2D1169
#1C0B42
Base = 400Lightest = 50 · #F6F3FCDarkest = 950 · #1C0B42
:root {
  --brand-50: #F6F3FC;
  --brand-100: #ECE6F9;
  --brand-200: #D5C7F5;
  --brand-300: #B79BF3;
  --brand-400: #9f7aef;
  --brand-500: #6F37E7;
  --brand-600: #571ADA;
  --brand-700: #4916B6;
  --brand-800: #3A1292;
  --brand-900: #2D1169;
  --brand-950: #1C0B42;
  --brand: #9f7aef;
  --brand-ink: #000000;
}

Colors that work with #9f7aef

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#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#AFBA12
Second voice, not a rival
Dark variant#2D0E72
Hover, pressed, headers
Light variant#EFE8FC
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 #9f7aef

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#CAEF7A
Analogous left#7A90EF
Analogous right#DA7AEF
Split-complement 1#EFDA7A
Split-complement 2#90EF7A
Triadic 1#EF9F7A
Triadic 2#7AEF9F
Tetradic#EF7A90

RGB percentages

Red62.4%
Green47.8%
Blue93.7%

CMYK percentages

Cyan33.5%
Magenta49.0%
Yellow0.0%
Key (black)6.3%

Color previews

#9f7aef text on a black background

contrast 6.50:1

Card sample

#9f7aef text on a white background

contrast 3.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(159, 122, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(159, 122, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9f7aef;
background: linear-gradient(135deg, #9f7aef, #ED7AEF);

Monochromatic scale

Palettes built from #9f7aef

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.

#9f7aef 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.

#9f7aef, answered

What color is #9f7aef?

#9f7aef is a light electric violet, closest to Medium Purple (ΔE2000 4.3). It sits at 259° on the hue wheel with 79% saturation and 71% lightness, which reads as cool.

What is the RGB value of #9f7aef?

rgb(159, 122, 239) — 159 red, 122 green and 239 blue out of 255, or 62.4% / 47.8% / 93.7% by channel.

Is #9f7aef a light or a dark color?

It is a mid-tone. Relative luminance is 0.2752 and perceived brightness is 59%, so black text on it reaches 6.50:1.

Should I use black or white text on #9f7aef?

Black. It scores 6.50:1 against #9f7aef, versus 3.23:1 for white — AA at any size.

What is the complementary color of #9f7aef?

#CAEF7A sits directly opposite on the wheel. Softer options are the split-complements #EFDA7A and #90EF7A, which give the same contrast with far less vibration.

What colors go well with #9f7aef?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #AFBA12 as an accent and #2D0E72 for hover and pressed states. For a palette, the analogous pair #7A90EF and #DA7AEF stays calm, while #CAEF7A is the loudest partner.

What is #9f7aef in CMYK for printing?

cmyk(34%, 49%, 0%, 6%). 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 #9f7aef warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CA7AEF; nudged cooler, #797FF0.

Work with #9f7aef in the Color Lab