Skip to content

#af3fe6

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

RGB
175, 63, 230
HSL
280°, 77%, 58%
CMYK
24, 73, 0, 10
Luminance
0.1838

At a glance

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

Hex
#af3fe6
Hue
280°
violet
Saturation
77%
electric
Lightness
58%
balanced
Brightness
90%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1838
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.68:1
Closest name
Medium Orchid
ΔE2000 6
Where it sits
Hue280° of 360°
Saturation77%
Lightness58%
Temperature
Warm ← → Cool61% 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#af3fe6
RGBrgb(175, 63, 230)
HSLhsl(280, 77%, 58%)
CMYKcmyk(24%, 73%, 0%, 10%)
LABlab(50.0 69.7 -64.2)
LCHlch(50.0 94.8 317.4)
OKLCHoklch(0.600 0.244 311.9)
Decimal11485158
Display P3color(display-p3 0.686 0.247 0.902)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af3fe6 on white: 4.49:1
AA ✗ fail · AA-large · AAA
Aa
#af3fe6 on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0071EB
deuteranopia · #2779E2
tritanopia · #A86590

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af3fe6 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F3FC
#F3E7F9
#E5C7F4
#D69CF2
#C16AEC
#af3fe6
#9A1CD9
#8117B5
#671390
#4C1269
#2F0B41
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #2F0B41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F3E7F9;
  --brand-200: #E5C7F4;
  --brand-300: #D69CF2;
  --brand-400: #C16AEC;
  --brand-500: #af3fe6;
  --brand-600: #9A1CD9;
  --brand-700: #8117B5;
  --brand-800: #671390;
  --brand-900: #4C1269;
  --brand-950: #2F0B41;
  --brand: #af3fe6;
  --brand-ink: #000000;
}

Colors that work with #af3fe6

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#DEC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#74B814
Second voice, not a rival
Dark variant#500F71
Hover, pressed, headers
Light variant#F6E8FC
Selected rows, tints
Dark surface#1F1424
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 #af3fe6

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#76E63F
Analogous left#5C3FE6
Analogous right#E63FCA
Split-complement 1#CAE63F
Split-complement 2#3FE65C
Triadic 1#E6AF3F
Triadic 2#3FE6AF
Tetradic#E65C3F

RGB percentages

Red68.6%
Green24.7%
Blue90.2%

CMYK percentages

Cyan23.9%
Magenta72.6%
Yellow0.0%
Key (black)9.8%

Color previews

#af3fe6 text on a black background

contrast 4.68:1

Card sample

#af3fe6 text on a white background

contrast 4.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af3fe6

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.

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

#af3fe6, answered

What color is #af3fe6?

#af3fe6 is a balanced electric violet, closest to Medium Orchid (ΔE2000 6). It sits at 280° on the hue wheel with 77% saturation and 58% lightness, which reads as cool.

What is the RGB value of #af3fe6?

rgb(175, 63, 230) — 175 red, 63 green and 230 blue out of 255, or 68.6% / 24.7% / 90.2% by channel.

Is #af3fe6 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1838 and perceived brightness is 52%, so black text on it reaches 4.68:1.

Should I use black or white text on #af3fe6?

Black. It scores 4.68:1 against #af3fe6, versus 4.49:1 for white — AA at any size.

What is the complementary color of #af3fe6?

#76E63F sits directly opposite on the wheel. Softer options are the split-complements #CAE63F and #3FE65C, which give the same contrast with far less vibration.

What colors go well with #af3fe6?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #804B9B for secondary text, #74B814 as an accent and #500F71 for hover and pressed states. For a palette, the analogous pair #5C3FE6 and #E63FCA stays calm, while #76E63F is the loudest partner.

What is #af3fe6 in CMYK for printing?

cmyk(24%, 73%, 0%, 10%). 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 #af3fe6 warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E63FE0; nudged cooler, #713DE8.

Work with #af3fe6 in the Color Lab