Skip to content

#af0ee2

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

RGB
175, 14, 226
HSL
286°, 88%, 47%
CMYK
23, 94, 0, 11
Luminance
0.1492

At a glance

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

Hex
#af0ee2
Hue
286°
violet
Saturation
88%
electric
Lightness
47%
balanced
Brightness
89%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1492
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.27:1
Closest name
Dark Orchid
ΔE2000 4.1
Where it sits
Hue286° of 360°
Saturation88%
Lightness47%
Temperature
Warm ← → Cool58% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af0ee2
RGBrgb(175, 14, 226)
HSLhsl(286, 88%, 47%)
CMYKcmyk(23%, 94%, 0%, 11%)
LABlab(45.5 81.0 -69.1)
LCHlch(45.5 106.5 319.6)
OKLCHoklch(0.568 0.275 314.6)
Decimal11472610
Display P3color(display-p3 0.686 0.055 0.886)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0ee2 on white: 5.27:1
AA ✓ pass · AA-large · AAA
Aa
#af0ee2 on black: 3.98:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0064E7
deuteranopia · #006FDE
tritanopia · #AA5185

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af0ee2 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
#F5E5FA
#EBC4F8
#E195F8
#D161F5
#C22CF2
#af0ee2
#950CC0
#770A9A
#570B6F
#360745
Base = 600Lightest = 50 · #FAF2FDDarkest = 950 · #360745
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E5FA;
  --brand-200: #EBC4F8;
  --brand-300: #E195F8;
  --brand-400: #D161F5;
  --brand-500: #C22CF2;
  --brand-600: #af0ee2;
  --brand-700: #950CC0;
  --brand-800: #770A9A;
  --brand-900: #570B6F;
  --brand-950: #360745;
  --brand: #af0ee2;
  --brand-ink: #ffffff;
}

Colors that work with #af0ee2

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#F9F4FA
Tinted page background
Border#E2C0ED
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#64C408
Second voice, not a rival
Dark variant#5D0778
Hover, pressed, headers
Light variant#F8E7FE
Selected rows, tints
Dark surface#201424
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 #af0ee2

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#41E20E
Analogous left#450EE2
Analogous right#E20EAB
Split-complement 1#ABE20E
Split-complement 2#0EE245
Triadic 1#E2AF0E
Triadic 2#0EE2AF
Tetradic#E2450E

RGB percentages

Red68.6%
Green5.5%
Blue88.6%

CMYK percentages

Cyan22.6%
Magenta93.8%
Yellow0.0%
Key (black)11.4%

Color previews

#af0ee2 text on a black background

contrast 3.98:1

Card sample

#af0ee2 text on a white background

contrast 5.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0ee2

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.

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

#af0ee2, answered

What color is #af0ee2?

#af0ee2 is a balanced electric violet, closest to Dark Orchid (ΔE2000 4.1). It sits at 286° on the hue wheel with 88% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #af0ee2?

rgb(175, 14, 226) — 175 red, 14 green and 226 blue out of 255, or 68.6% / 5.5% / 88.6% by channel.

Is #af0ee2 a light or a dark color?

It is a dark color. Relative luminance is 0.1492 and perceived brightness is 48%, so white text on it reaches 5.27:1.

Should I use black or white text on #af0ee2?

White. It scores 5.27:1 against #af0ee2, versus 3.98:1 for black — AA at any size.

What is the complementary color of #af0ee2?

#41E20E sits directly opposite on the wheel. Softer options are the split-complements #ABE20E and #0EE245, which give the same contrast with far less vibration.

What colors go well with #af0ee2?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #64C408 as an accent and #5D0778 for hover and pressed states. For a palette, the analogous pair #450EE2 and #E20EAB stays calm, while #41E20E is the loudest partner.

What is #af0ee2 in CMYK for printing?

cmyk(23%, 94%, 0%, 11%). 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 #af0ee2 warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E20EC7; nudged cooler, #610CE5.

Work with #af0ee2 in the Color Lab