Skip to content

#af01ee

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

RGB
175, 1, 238
HSL
284°, 99%, 47%
CMYK
27, 100, 0, 7
Luminance
0.1531

At a glance

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

Hex
#af01ee
Hue
284°
violet
Saturation
99%
electric
Lightness
47%
balanced
Brightness
93%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1531
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.17:1
Closest name
Dark Orchid
ΔE2000 5.1
Where it sits
Hue284° of 360°
Saturation99%
Lightness47%
Temperature
Warm ← → Cool59% 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#af01ee
RGBrgb(175, 1, 238)
HSLhsl(284, 99%, 47%)
CMYKcmyk(27%, 100%, 0%, 7%)
LABlab(46.1 84.4 -75.0)
LCHlch(46.1 112.9 318.4)
OKLCHoklch(0.574 0.287 312.0)
Decimal11469294
Display P3color(display-p3 0.686 0.004 0.933)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af01ee on white: 5.17:1
AA ✓ pass · AA-large · AAA
Aa
#af01ee on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066F3
deuteranopia · #0070EA
tritanopia · #A7568C

Color scale — 50 to 950

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

#FAF1FE
#F6E3FC
#ECC0FB
#E18FFF
#D257FE
#C31FFE
#af01ee
#9601CB
#7801A3
#570575
#370349
Base = 600Lightest = 50 · #FAF1FEDarkest = 950 · #370349
:root {
  --brand-50: #FAF1FE;
  --brand-100: #F6E3FC;
  --brand-200: #ECC0FB;
  --brand-300: #E18FFF;
  --brand-400: #D257FE;
  --brand-500: #C31FFE;
  --brand-600: #af01ee;
  --brand-700: #9601CB;
  --brand-800: #7801A3;
  --brand-900: #570575;
  --brand-950: #370349;
  --brand: #af01ee;
  --brand-ink: #ffffff;
}

Colors that work with #af01ee

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#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#69CC00
Second voice, not a rival
Dark variant#5D017F
Hover, pressed, headers
Light variant#F8E6FF
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 #af01ee

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#40EE01
Analogous left#3901EE
Analogous right#EE01B6
Split-complement 1#B6EE01
Split-complement 2#01EE39
Triadic 1#EEAF01
Triadic 2#01EEAF
Tetradic#EE3901

RGB percentages

Red68.6%
Green0.4%
Blue93.3%

CMYK percentages

Cyan26.5%
Magenta99.6%
Yellow0.0%
Key (black)6.7%

Color previews

#af01ee text on a black background

contrast 4.06:1

Card sample

#af01ee text on a white background

contrast 5.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af01ee

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.

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

#af01ee, answered

What color is #af01ee?

#af01ee is a balanced electric violet, closest to Dark Orchid (ΔE2000 5.1). It sits at 284° on the hue wheel with 99% saturation and 47% lightness, which reads as cool.

What is the RGB value of #af01ee?

rgb(175, 1, 238) — 175 red, 1 green and 238 blue out of 255, or 68.6% / 0.4% / 93.3% by channel.

Is #af01ee a light or a dark color?

It is a dark color. Relative luminance is 0.1531 and perceived brightness is 49%, so white text on it reaches 5.17:1.

Should I use black or white text on #af01ee?

White. It scores 5.17:1 against #af01ee, versus 4.06:1 for black — AA at any size.

What is the complementary color of #af01ee?

#40EE01 sits directly opposite on the wheel. Softer options are the split-complements #B6EE01 and #01EE39, which give the same contrast with far less vibration.

What colors go well with #af01ee?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #69CC00 as an accent and #5D017F for hover and pressed states. For a palette, the analogous pair #3901EE and #EE01B6 stays calm, while #40EE01 is the loudest partner.

What is #af01ee in CMYK for printing?

cmyk(27%, 100%, 0%, 7%). 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 #af01ee warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EE01D6; nudged cooler, #5800EF.

Work with #af01ee in the Color Lab