Skip to content

#af0ff8

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

RGB
175, 15, 248
HSL
281°, 94%, 52%
CMYK
29, 94, 0, 3
Luminance
0.1623

At a glance

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

Hex
#af0ff8
Hue
281°
violet
Saturation
94%
electric
Lightness
52%
balanced
Brightness
97%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1623
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.95:1
Closest name
Dark Orchid
ΔE2000 6.1
Where it sits
Hue281° of 360°
Saturation94%
Lightness52%
Temperature
Warm ← → Cool60% 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#af0ff8
RGBrgb(175, 15, 248)
HSLhsl(281, 94%, 52%)
CMYKcmyk(29%, 94%, 0%, 3%)
LABlab(47.3 84.9 -78.7)
LCHlch(47.3 115.8 317.2)
OKLCHoklch(0.585 0.291 309.7)
Decimal11472888
Display P3color(display-p3 0.686 0.059 0.973)

Copy-ready code

/* CSS */
color: #af0ff8;
background-color: #af0ff8;
/* Tailwind (arbitrary) */
class="text-[#af0ff8] bg-[#af0ff8]"
/* SCSS */
$brand: #af0ff8;
/* SwiftUI */
Color(red: 0.686, green: 0.059, blue: 0.973)
/* Android */
Color.parseColor("#af0ff8")
/* Flutter */
Color(0xFFAF0FF8)
/* Python / OpenCV (BGR) */
(248, 15, 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#ffffff on #af0ff8 · 4.95:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.95:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.25:1
AA fail · AA large pass · AAA fail
Reading the other direction: #af0ff8 as text scores 4.95:1 on white and 4.25:1 on black.

Accessibility — WCAG contrast

Aa
#af0ff8 on white: 4.95:1
AA ✓ pass · AA-large · AAA
Aa
#af0ff8 on black: 4.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BFD
deuteranopia · #0072F4
tritanopia · #A45D93

Color scale — 50 to 950

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

#FAF2FD
#F4E4FB
#E8C2FA
#DB92FC
#C85BFA
#B625F9
#af0ff8
#8A06C6
#6E059F
#510872
#330547
Base = 600Lightest = 50 · #FAF2FDDarkest = 950 · #330547
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F4E4FB;
  --brand-200: #E8C2FA;
  --brand-300: #DB92FC;
  --brand-400: #C85BFA;
  --brand-500: #B625F9;
  --brand-600: #af0ff8;
  --brand-700: #8A06C6;
  --brand-800: #6E059F;
  --brand-900: #510872;
  --brand-950: #330547;
  --brand: #af0ff8;
  --brand-ink: #ffffff;
}

Colors that work with #af0ff8

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F8F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#73CA02
Second voice, not a rival
Dark variant#56047C
Hover, pressed, headers
Light variant#F7E6FE
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 #af0ff8

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#58F80F
Analogous left#3B0FF8
Analogous right#F80FCD
Split-complement 1#CDF80F
Split-complement 2#0FF83B
Triadic 1#F8AF0F
Triadic 2#0FF8AF
Tetradic#F83B0F

RGB percentages

Red68.6%
Green5.9%
Blue97.3%

CMYK percentages

Cyan29.4%
Magenta94.0%
Yellow0.0%
Key (black)2.7%

Color previews

#af0ff8 text on a black background

contrast 4.25:1

Card sample

#af0ff8 text on a white background

contrast 4.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0ff8

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.

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

#af0ff8, answered

What color is #af0ff8?

#af0ff8 is a balanced electric violet, closest to Dark Orchid (ΔE2000 6.1). It sits at 281° on the hue wheel with 94% saturation and 52% lightness, which reads as cool.

What is the RGB value of #af0ff8?

rgb(175, 15, 248) — 175 red, 15 green and 248 blue out of 255, or 68.6% / 5.9% / 97.3% by channel.

Is #af0ff8 a light or a dark color?

It is a dark color. Relative luminance is 0.1623 and perceived brightness is 50%, so white text on it reaches 4.95:1.

Should I use black or white text on #af0ff8?

White. It scores 4.95:1 against #af0ff8, versus 4.25:1 for black — AA at any size.

What is the complementary color of #af0ff8?

#58F80F sits directly opposite on the wheel. Softer options are the split-complements #CDF80F and #0FF83B, which give the same contrast with far less vibration.

What colors go well with #af0ff8?

For interface work: #F8F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #73CA02 as an accent and #56047C for hover and pressed states. For a palette, the analogous pair #3B0FF8 and #F80FCD stays calm, while #58F80F is the loudest partner.

What is #af0ff8 in CMYK for printing?

cmyk(29%, 94%, 0%, 3%). 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 #af0ff8 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F80FEC; nudged cooler, #590DFA.

Work with #af0ff8 in the Color Lab