Skip to content

#af2efd

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

RGB
175, 46, 253
HSL
277°, 98%, 59%
CMYK
31, 82, 0, 1
Luminance
0.1816

At a glance

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

Hex
#af2efd
Hue
277°
violet
Saturation
98%
electric
Lightness
59%
balanced
Brightness
99%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1816
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.63:1
Closest name
Dark Orchid
ΔE2000 7.5
Where it sits
Hue277° of 360°
Saturation98%
Lightness59%
Temperature
Warm ← → Cool63% 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#af2efd
RGBrgb(175, 46, 253)
HSLhsl(277, 98%, 59%)
CMYKcmyk(31%, 82%, 0%, 1%)
LABlab(49.7 79.9 -77.5)
LCHlch(49.7 111.3 315.9)
OKLCHoklch(0.603 0.279 307.8)
Decimal11480829
Display P3color(display-p3 0.686 0.180 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2efd on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#af2efd on black: 4.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0072FF
deuteranopia · #0077F9
tritanopia · #A26799

Color scale — 50 to 950

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

#F9F1FD
#F3E3FC
#E5C1FB
#D490FE
#BF58FD
#af2efd
#9802F2
#7F02CA
#6502A2
#4B0674
#2F0449
Base = 500Lightest = 50 · #F9F1FDDarkest = 950 · #2F0449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E3FC;
  --brand-200: #E5C1FB;
  --brand-300: #D490FE;
  --brand-400: #BF58FD;
  --brand-500: #af2efd;
  --brand-600: #9802F2;
  --brand-700: #7F02CA;
  --brand-800: #6502A2;
  --brand-900: #4B0674;
  --brand-950: #2F0449;
  --brand: #af2efd;
  --brand-ink: #000000;
}

Colors that work with #af2efd

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F8F4FA
Tinted page background
Border#DCC0ED
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#80CC00
Second voice, not a rival
Dark variant#4F017E
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #af2efd

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#7CFD2E
Analogous left#472EFD
Analogous right#FD2EE3
Split-complement 1#E3FD2E
Split-complement 2#2EFD47
Triadic 1#FDAF2E
Triadic 2#2EFDAF
Tetradic#FD472E

RGB percentages

Red68.6%
Green18.0%
Blue99.2%

CMYK percentages

Cyan30.8%
Magenta81.8%
Yellow0.0%
Key (black)0.8%

Color previews

#af2efd text on a black background

contrast 4.63:1

Card sample

#af2efd text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2efd

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.

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

#af2efd, answered

What color is #af2efd?

#af2efd is a balanced electric violet, closest to Dark Orchid (ΔE2000 7.5). It sits at 277° on the hue wheel with 98% saturation and 59% lightness, which reads as cool.

What is the RGB value of #af2efd?

rgb(175, 46, 253) — 175 red, 46 green and 253 blue out of 255, or 68.6% / 18% / 99.2% by channel.

Is #af2efd a light or a dark color?

It is a mid-tone. Relative luminance is 0.1816 and perceived brightness is 52%, so black text on it reaches 4.63:1.

Should I use black or white text on #af2efd?

Black. It scores 4.63:1 against #af2efd, versus 4.53:1 for white — AA at any size.

What is the complementary color of #af2efd?

#7CFD2E sits directly opposite on the wheel. Softer options are the split-complements #E3FD2E and #2EFD47, which give the same contrast with far less vibration.

What colors go well with #af2efd?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7D4B9B for secondary text, #80CC00 as an accent and #4F017E for hover and pressed states. For a palette, the analogous pair #472EFD and #FD2EE3 stays calm, while #7CFD2E is the loudest partner.

What is #af2efd in CMYK for printing?

cmyk(31%, 82%, 0%, 1%). 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 #af2efd warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB2EFD; nudged cooler, #622CFF.

Work with #af2efd in the Color Lab