Skip to content

#af1aef

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

RGB
175, 26, 239
HSL
282°, 87%, 52%
CMYK
27, 89, 0, 6
Luminance
0.1608

At a glance

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

Hex
#af1aef
Hue
282°
violet
Saturation
87%
electric
Lightness
52%
balanced
Brightness
94%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1608
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.98:1
Closest name
Dark Orchid
ΔE2000 5.3
Where it sits
Hue282° of 360°
Saturation87%
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#af1aef
RGBrgb(175, 26, 239)
HSLhsl(282, 87%, 52%)
CMYKcmyk(27%, 89%, 0%, 6%)
LABlab(47.1 81.7 -73.9)
LCHlch(47.1 110.2 317.9)
OKLCHoklch(0.582 0.280 311.4)
Decimal11475695
Display P3color(display-p3 0.686 0.102 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af1aef on white: 4.98:1
AA ✓ pass · AA-large · AAA
Aa
#af1aef on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AF4
deuteranopia · #0072EB
tritanopia · #A65A8E

Color scale — 50 to 950

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

#F9F2FD
#F4E5FA
#E8C4F7
#DA96F8
#C862F4
#af1aef
#A510E5
#890DBF
#6E0B99
#510C6E
#320845
Base = 500Lightest = 50 · #F9F2FDDarkest = 950 · #320845
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F4E5FA;
  --brand-200: #E8C4F7;
  --brand-300: #DA96F8;
  --brand-400: #C862F4;
  --brand-500: #af1aef;
  --brand-600: #A510E5;
  --brand-700: #890DBF;
  --brand-800: #6E0B99;
  --brand-900: #510C6E;
  --brand-950: #320845;
  --brand: #af1aef;
  --brand-ink: #ffffff;
}

Colors that work with #af1aef

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#70C309
Second voice, not a rival
Dark variant#560877
Hover, pressed, headers
Light variant#F7E7FD
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 #af1aef

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#5AEF1A
Analogous left#451AEF
Analogous right#EF1AC4
Split-complement 1#C4EF1A
Split-complement 2#1AEF45
Triadic 1#EFAF1A
Triadic 2#1AEFAF
Tetradic#EF451A

RGB percentages

Red68.6%
Green10.2%
Blue93.7%

CMYK percentages

Cyan26.8%
Magenta89.1%
Yellow0.0%
Key (black)6.3%

Color previews

#af1aef text on a black background

contrast 4.22:1

Card sample

#af1aef text on a white background

contrast 4.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1aef

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.

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

#af1aef, answered

What color is #af1aef?

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

What is the RGB value of #af1aef?

rgb(175, 26, 239) — 175 red, 26 green and 239 blue out of 255, or 68.6% / 10.2% / 93.7% by channel.

Is #af1aef a light or a dark color?

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

Should I use black or white text on #af1aef?

White. It scores 4.98:1 against #af1aef, versus 4.22:1 for black — AA at any size.

What is the complementary color of #af1aef?

#5AEF1A sits directly opposite on the wheel. Softer options are the split-complements #C4EF1A and #1AEF45, which give the same contrast with far less vibration.

What colors go well with #af1aef?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #70C309 as an accent and #560877 for hover and pressed states. For a palette, the analogous pair #451AEF and #EF1AC4 stays calm, while #5AEF1A is the loudest partner.

What is #af1aef in CMYK for printing?

cmyk(27%, 89%, 0%, 6%). 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 #af1aef 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 #EF1AE1; nudged cooler, #6018F1.

Work with #af1aef in the Color Lab