Skip to content

#af2fea

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

RGB
175, 47, 234
HSL
281°, 82%, 55%
CMYK
25, 80, 0, 8
Luminance
0.1709

At a glance

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

Hex
#af2fea
Hue
281°
violet
Saturation
82%
electric
Lightness
55%
balanced
Brightness
92%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1709
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.75:1
Closest name
Dark Orchid
ΔE2000 5.5
Where it sits
Hue281° of 360°
Saturation82%
Lightness55%
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#af2fea
RGBrgb(175, 47, 234)
HSLhsl(281, 82%, 55%)
CMYKcmyk(25%, 80%, 0%, 8%)
LABlab(48.4 75.9 -69.0)
LCHlch(48.4 102.6 317.7)
OKLCHoklch(0.589 0.262 311.8)
Decimal11481066
Display P3color(display-p3 0.686 0.184 0.918)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2fea on white: 4.75:1
AA ✓ pass · AA-large · AAA
Aa
#af2fea on black: 4.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006DEF
deuteranopia · #0075E6
tritanopia · #A75F8E

Color scale — 50 to 950

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

#F9F2FC
#F3E6F9
#E7C6F6
#D899F5
#C466F0
#af2fea
#9F16DE
#8513B9
#6A0F94
#4E0F6B
#310943
Base = 500Lightest = 50 · #F9F2FCDarkest = 950 · #310943
:root {
  --brand-50: #F9F2FC;
  --brand-100: #F3E6F9;
  --brand-200: #E7C6F6;
  --brand-300: #D899F5;
  --brand-400: #C466F0;
  --brand-500: #af2fea;
  --brand-600: #9F16DE;
  --brand-700: #8513B9;
  --brand-800: #6A0F94;
  --brand-900: #4E0F6B;
  --brand-950: #310943;
  --brand: #af2fea;
  --brand-ink: #ffffff;
}

Colors that work with #af2fea

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#F8F4FA
Tinted page background
Border#DFC0ED
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#71BE0E
Second voice, not a rival
Dark variant#530C74
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 #af2fea

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#6AEA2F
Analogous left#522FEA
Analogous right#EA2FC7
Split-complement 1#C7EA2F
Split-complement 2#2FEA52
Triadic 1#EAAF2F
Triadic 2#2FEAAF
Tetradic#EA522F

RGB percentages

Red68.6%
Green18.4%
Blue91.8%

CMYK percentages

Cyan25.2%
Magenta79.9%
Yellow0.0%
Key (black)8.2%

Color previews

#af2fea text on a black background

contrast 4.42:1

Card sample

#af2fea text on a white background

contrast 4.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2fea

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.

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

#af2fea, answered

What color is #af2fea?

#af2fea is a balanced electric violet, closest to Dark Orchid (ΔE2000 5.5). It sits at 281° on the hue wheel with 82% saturation and 55% lightness, which reads as cool.

What is the RGB value of #af2fea?

rgb(175, 47, 234) — 175 red, 47 green and 234 blue out of 255, or 68.6% / 18.4% / 91.8% by channel.

Is #af2fea a light or a dark color?

It is a dark color. Relative luminance is 0.1709 and perceived brightness is 51%, so white text on it reaches 4.75:1.

Should I use black or white text on #af2fea?

White. It scores 4.75:1 against #af2fea, versus 4.42:1 for black — AA at any size.

What is the complementary color of #af2fea?

#6AEA2F sits directly opposite on the wheel. Softer options are the split-complements #C7EA2F and #2FEA52, which give the same contrast with far less vibration.

What colors go well with #af2fea?

For interface work: #F8F4FA as the surface, #DFC0ED for borders, #824B9B for secondary text, #71BE0E as an accent and #530C74 for hover and pressed states. For a palette, the analogous pair #522FEA and #EA2FC7 stays calm, while #6AEA2F is the loudest partner.

What is #af2fea in CMYK for printing?

cmyk(25%, 80%, 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 #af2fea 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 #EA2FE0; nudged cooler, #6A2DEC.

Work with #af2fea in the Color Lab