Skip to content

#af2ae8

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

RGB
175, 42, 232
HSL
282°, 81%, 54%
CMYK
25, 82, 0, 9
Luminance
0.1660

At a glance

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

Hex
#af2ae8
Hue
282°
violet
Saturation
81%
electric
Lightness
54%
balanced
Brightness
91%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1660
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.86:1
Closest name
Dark Orchid
ΔE2000 5
Where it sits
Hue282° of 360°
Saturation81%
Lightness54%
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#af2ae8
RGBrgb(175, 42, 232)
HSLhsl(282, 81%, 54%)
CMYKcmyk(25%, 82%, 0%, 9%)
LABlab(47.8 76.9 -68.9)
LCHlch(47.8 103.2 318.1)
OKLCHoklch(0.585 0.265 312.5)
Decimal11479784
Display P3color(display-p3 0.686 0.165 0.910)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2ae8 on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#af2ae8 on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006BED
deuteranopia · #0074E4
tritanopia · #A85C8C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af2ae8 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
#F4E6F9
#E7C6F5
#D99AF4
#C667EF
#af2ae8
#A218DD
#8714B8
#6C1093
#4F106B
#320A43
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #320A43
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E6F9;
  --brand-200: #E7C6F5;
  --brand-300: #D99AF4;
  --brand-400: #C667EF;
  --brand-500: #af2ae8;
  --brand-600: #A218DD;
  --brand-700: #8714B8;
  --brand-800: #6C1093;
  --brand-900: #4F106B;
  --brand-950: #320A43;
  --brand: #af2ae8;
  --brand-ink: #ffffff;
}

Colors that work with #af2ae8

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#DFC0ED
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6FBC10
Second voice, not a rival
Dark variant#540C73
Hover, pressed, headers
Light variant#F6E8FD
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 #af2ae8

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#63E82A
Analogous left#502AE8
Analogous right#E82AC2
Split-complement 1#C2E82A
Split-complement 2#2AE850
Triadic 1#E8AF2A
Triadic 2#2AE8AF
Tetradic#E8502A

RGB percentages

Red68.6%
Green16.5%
Blue91.0%

CMYK percentages

Cyan24.6%
Magenta81.9%
Yellow0.0%
Key (black)9.0%

Color previews

#af2ae8 text on a black background

contrast 4.32:1

Card sample

#af2ae8 text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ae8

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.

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

#af2ae8, answered

What color is #af2ae8?

#af2ae8 is a balanced electric violet, closest to Dark Orchid (ΔE2000 5). It sits at 282° on the hue wheel with 81% saturation and 54% lightness, which reads as cool.

What is the RGB value of #af2ae8?

rgb(175, 42, 232) — 175 red, 42 green and 232 blue out of 255, or 68.6% / 16.5% / 91% by channel.

Is #af2ae8 a light or a dark color?

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

Should I use black or white text on #af2ae8?

White. It scores 4.86:1 against #af2ae8, versus 4.32:1 for black — AA at any size.

What is the complementary color of #af2ae8?

#63E82A sits directly opposite on the wheel. Softer options are the split-complements #C2E82A and #2AE850, which give the same contrast with far less vibration.

What colors go well with #af2ae8?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #6FBC10 as an accent and #540C73 for hover and pressed states. For a palette, the analogous pair #502AE8 and #E82AC2 stays calm, while #63E82A is the loudest partner.

What is #af2ae8 in CMYK for printing?

cmyk(25%, 82%, 0%, 9%). 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 #af2ae8 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 #E82ADB; nudged cooler, #6828EA.

Work with #af2ae8 in the Color Lab