Skip to content

#af4ff5

a balanced, electric violet · cool · closest name: Medium Orchid

RGB
175, 79, 245
HSL
275°, 89%, 64%
CMYK
29, 68, 0, 4
Luminance
0.2130

At a glance

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

Hex
#af4ff5
Hue
275°
violet
Saturation
89%
electric
Lightness
64%
balanced
Brightness
96%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2130
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.26:1
Closest name
Medium Orchid
ΔE2000 6.1
Where it sits
Hue275° of 360°
Saturation89%
Lightness64%
Temperature
Warm ← → Cool64% 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#af4ff5
RGBrgb(175, 79, 245)
HSLhsl(275, 89%, 64%)
CMYKcmyk(29%, 68%, 0%, 4%)
LABlab(53.3 66.3 -67.2)
LCHlch(53.3 94.4 314.6)
OKLCHoklch(0.626 0.240 307.3)
Decimal11489269
Display P3color(display-p3 0.686 0.310 0.961)

Copy-ready code

/* CSS */
color: #af4ff5;
background-color: #af4ff5;
/* Tailwind (arbitrary) */
class="text-[#af4ff5] bg-[#af4ff5]"
/* SCSS */
$brand: #af4ff5;
/* SwiftUI */
Color(red: 0.686, green: 0.310, blue: 0.961)
/* Android */
Color.parseColor("#af4ff5")
/* Flutter */
Color(0xFFAF4FF5)
/* Python / OpenCV (BGR) */
(245, 79, 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 #af4ff5 · 5.26:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.99:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.26:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #af4ff5 as text scores 3.99:1 on white and 5.26:1 on black.

Accessibility — WCAG contrast

Aa
#af4ff5 on white: 3.99:1
AA ✗ fail · AA-large · AAA
Aa
#af4ff5 on black: 5.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007CFA
deuteranopia · #2380F1
tritanopia · #A4749C

Color scale — 50 to 950

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

#F8F2FD
#F1E5FB
#E2C4F8
#CF95F9
#af4ff5
#9E2BF3
#8C0DE8
#740BC1
#5D099A
#450B6F
#2B0746
Base = 400Lightest = 50 · #F8F2FDDarkest = 950 · #2B0746
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F1E5FB;
  --brand-200: #E2C4F8;
  --brand-300: #CF95F9;
  --brand-400: #af4ff5;
  --brand-500: #9E2BF3;
  --brand-600: #8C0DE8;
  --brand-700: #740BC1;
  --brand-800: #5D099A;
  --brand-900: #450B6F;
  --brand-950: #2B0746;
  --brand: #af4ff5;
  --brand-ink: #000000;
}

Colors that work with #af4ff5

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#F8F4FA
Tinted page background
Border#DAC0ED
Hairlines and dividers
Muted text#794B9B
Captions on the surface
Accent#87C507
Second voice, not a rival
Dark variant#490779
Hover, pressed, headers
Light variant#F4E7FE
Selected rows, tints
Dark surface#1D1424
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 #af4ff5

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#95F54F
Analogous left#5C4FF5
Analogous right#F54FE8
Split-complement 1#E8F54F
Split-complement 2#4FF55C
Triadic 1#F5AF4F
Triadic 2#4FF5AF
Tetradic#F55C4F

RGB percentages

Red68.6%
Green31.0%
Blue96.1%

CMYK percentages

Cyan28.6%
Magenta67.8%
Yellow0.0%
Key (black)3.9%

Color previews

#af4ff5 text on a black background

contrast 5.26:1

Card sample

#af4ff5 text on a white background

contrast 3.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4ff5

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.

#af4ff5 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
ButtonsLinksFocus statesCharts
Print note

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

#af4ff5, answered

What color is #af4ff5?

#af4ff5 is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.1). It sits at 275° on the hue wheel with 89% saturation and 64% lightness, which reads as cool.

What is the RGB value of #af4ff5?

rgb(175, 79, 245) — 175 red, 79 green and 245 blue out of 255, or 68.6% / 31% / 96.1% by channel.

Is #af4ff5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2130 and perceived brightness is 55%, so black text on it reaches 5.26:1.

Should I use black or white text on #af4ff5?

Black. It scores 5.26:1 against #af4ff5, versus 3.99:1 for white — AA at any size.

What is the complementary color of #af4ff5?

#95F54F sits directly opposite on the wheel. Softer options are the split-complements #E8F54F and #4FF55C, which give the same contrast with far less vibration.

What colors go well with #af4ff5?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #794B9B for secondary text, #87C507 as an accent and #490779 for hover and pressed states. For a palette, the analogous pair #5C4FF5 and #F54FE8 stays calm, while #95F54F is the loudest partner.

What is #af4ff5 in CMYK for printing?

cmyk(29%, 68%, 0%, 4%). 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 #af4ff5 warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC4FF5; nudged cooler, #714DF7.

Work with #af4ff5 in the Color Lab