Skip to content

#af90f0

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

RGB
175, 144, 240
HSL
259°, 76%, 75%
CMYK
27, 40, 0, 6
Luminance
0.3535

At a glance

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

Hex
#af90f0
Hue
259°
violet
Saturation
76%
electric
Lightness
75%
light
Brightness
94%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3535
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.07:1
Closest name
Medium Purple
ΔE2000 9.9
Where it sits
Hue259° of 360°
Saturation76%
Lightness75%
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#af90f0
RGBrgb(175, 144, 240)
HSLhsl(259, 76%, 75%)
CMYKcmyk(27%, 40%, 0%, 6%)
LABlab(66.0 31.4 -44.1)
LCHlch(66.0 54.2 305.4)
OKLCHoklch(0.720 0.139 297.7)
Decimal11505904
Display P3color(display-p3 0.686 0.565 0.941)

Copy-ready code

/* CSS */
color: #af90f0;
background-color: #af90f0;
/* Tailwind (arbitrary) */
class="text-[#af90f0] bg-[#af90f0]"
/* SCSS */
$brand: #af90f0;
/* SwiftUI */
Color(red: 0.686, green: 0.565, blue: 0.941)
/* Android */
Color.parseColor("#af90f0")
/* Flutter */
Color(0xFFAF90F0)
/* Python / OpenCV (BGR) */
(240, 144, 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 #af90f0 · 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: #af90f0 as text scores 2.60:1 on white and 8.07:1 on black.

Accessibility — WCAG contrast

Aa
#af90f0 on white: 2.60:1
AA ✗ fail · AA-large · AAA
Aa
#af90f0 on black: 8.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #76A1F4
deuteranopia · #7B9FEE
tritanopia · #A2A1B5

Color scale — 50 to 950

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

#F6F3FC
#ECE7F9
#D6C8F4
#af90f0
#946BEB
#7139E4
#591DD8
#4B18B4
#3C1390
#2E1268
#1D0B41
Base = 300Lightest = 50 · #F6F3FCDarkest = 950 · #1D0B41
:root {
  --brand-50: #F6F3FC;
  --brand-100: #ECE7F9;
  --brand-200: #D6C8F4;
  --brand-300: #af90f0;
  --brand-400: #946BEB;
  --brand-500: #7139E4;
  --brand-600: #591DD8;
  --brand-700: #4B18B4;
  --brand-800: #3C1390;
  --brand-900: #2E1268;
  --brand-950: #1D0B41;
  --brand: #af90f0;
  --brand-ink: #000000;
}

Colors that work with #af90f0

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#654B9B
Captions on the surface
Accent#ABB814
Second voice, not a rival
Dark variant#2F0F70
Hover, pressed, headers
Light variant#EFE9FC
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 #af90f0

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#D1F090
Analogous left#90A1F0
Analogous right#DF90F0
Split-complement 1#F0DF90
Split-complement 2#A1F090
Triadic 1#F0AF90
Triadic 2#90F0AF
Tetradic#F090A1

RGB percentages

Red68.6%
Green56.5%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta40.0%
Yellow0.0%
Key (black)5.9%

Color previews

#af90f0 text on a black background

contrast 8.07:1

Card sample

#af90f0 text on a white background

contrast 2.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af90f0

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.

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

#af90f0, answered

What color is #af90f0?

#af90f0 is a light electric violet, closest to Medium Purple (ΔE2000 9.9). It sits at 259° on the hue wheel with 76% saturation and 75% lightness, which reads as cool.

What is the RGB value of #af90f0?

rgb(175, 144, 240) — 175 red, 144 green and 240 blue out of 255, or 68.6% / 56.5% / 94.1% by channel.

Is #af90f0 a light or a dark color?

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

Should I use black or white text on #af90f0?

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

What is the complementary color of #af90f0?

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

What colors go well with #af90f0?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #654B9B for secondary text, #ABB814 as an accent and #2F0F70 for hover and pressed states. For a palette, the analogous pair #90A1F0 and #DF90F0 stays calm, while #D1F090 is the loudest partner.

What is #af90f0 in CMYK for printing?

cmyk(27%, 40%, 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 #af90f0 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 #D290F0; nudged cooler, #8F93F1.

Work with #af90f0 in the Color Lab