Skip to content

#af0fec

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

RGB
175, 15, 236
HSL
283°, 88%, 49%
CMYK
26, 94, 0, 8
Luminance
0.1551

At a glance

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

Hex
#af0fec
Hue
283°
violet
Saturation
88%
electric
Lightness
49%
balanced
Brightness
93%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1551
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.12:1
Closest name
Dark Orchid
ΔE2000 4.9
Where it sits
Hue283° of 360°
Saturation88%
Lightness49%
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#af0fec
RGBrgb(175, 15, 236)
HSLhsl(283, 88%, 49%)
CMYKcmyk(26%, 94%, 0%, 8%)
LABlab(46.3 82.7 -73.5)
LCHlch(46.3 110.6 318.4)
OKLCHoklch(0.576 0.282 312.3)
Decimal11472876
Display P3color(display-p3 0.686 0.059 0.925)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0fec on white: 5.12:1
AA ✓ pass · AA-large · AAA
Aa
#af0fec on black: 4.10:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0067F1
deuteranopia · #0070E8
tritanopia · #A7578C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af0fec 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
#F4E5FA
#E9C4F8
#DD96F8
#CC61F5
#BB2CF2
#af0fec
#8E0CC0
#720A99
#530C6F
#340745
Base = 600Lightest = 50 · #FAF2FDDarkest = 950 · #340745
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F4E5FA;
  --brand-200: #E9C4F8;
  --brand-300: #DD96F8;
  --brand-400: #CC61F5;
  --brand-500: #BB2CF2;
  --brand-600: #af0fec;
  --brand-700: #8E0CC0;
  --brand-800: #720A99;
  --brand-900: #530C6F;
  --brand-950: #340745;
  --brand: #af0fec;
  --brand-ink: #ffffff;
}

Colors that work with #af0fec

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#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6BC408
Second voice, not a rival
Dark variant#590878
Hover, pressed, headers
Light variant#F7E7FD
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 #af0fec

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#4CEC0F
Analogous left#400FEC
Analogous right#EC0FBB
Split-complement 1#BBEC0F
Split-complement 2#0FEC40
Triadic 1#ECAF0F
Triadic 2#0FECAF
Tetradic#EC400F

RGB percentages

Red68.6%
Green5.9%
Blue92.5%

CMYK percentages

Cyan25.8%
Magenta93.6%
Yellow0.0%
Key (black)7.5%

Color previews

#af0fec text on a black background

contrast 4.10:1

Card sample

#af0fec text on a white background

contrast 5.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0fec

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.

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

#af0fec, answered

What color is #af0fec?

#af0fec is a balanced electric violet, closest to Dark Orchid (ΔE2000 4.9). It sits at 283° on the hue wheel with 88% saturation and 49% lightness, which reads as cool.

What is the RGB value of #af0fec?

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

Is #af0fec a light or a dark color?

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

Should I use black or white text on #af0fec?

White. It scores 5.12:1 against #af0fec, versus 4.10:1 for black — AA at any size.

What is the complementary color of #af0fec?

#4CEC0F sits directly opposite on the wheel. Softer options are the split-complements #BBEC0F and #0FEC40, which give the same contrast with far less vibration.

What colors go well with #af0fec?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6BC408 as an accent and #590878 for hover and pressed states. For a palette, the analogous pair #400FEC and #EC0FBB stays calm, while #4CEC0F is the loudest partner.

What is #af0fec in CMYK for printing?

cmyk(26%, 94%, 0%, 8%). 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 #af0fec 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 #EC0FD8; nudged cooler, #5D0DEE.

Work with #af0fec in the Color Lab