Skip to content

#af34fe

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

RGB
175, 52, 254
HSL
277°, 99%, 60%
CMYK
31, 80, 0, 0
Luminance
0.1873

At a glance

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

Hex
#af34fe
Hue
277°
violet
Saturation
99%
electric
Lightness
60%
balanced
Brightness
100%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1873
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.75:1
Closest name
Dark Orchid
ΔE2000 8
Where it sits
Hue277° of 360°
Saturation99%
Lightness60%
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#af34fe
RGBrgb(175, 52, 254)
HSLhsl(277, 99%, 60%)
CMYKcmyk(31%, 80%, 0%, 0%)
LABlab(50.4 78.3 -77.0)
LCHlch(50.4 109.8 315.5)
OKLCHoklch(0.608 0.275 307.3)
Decimal11482366
Display P3color(display-p3 0.686 0.204 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af34fe on white: 4.43:1
AA ✗ fail · AA-large · AAA
Aa
#af34fe on black: 4.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0074FF
deuteranopia · #0079FA
tritanopia · #A16A9B

Color scale — 50 to 950

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

#F9F1FE
#F2E3FC
#E4C0FB
#D38FFE
#BD58FE
#af34fe
#9501F4
#7C01CB
#6301A2
#490575
#2E0349
Base = 500Lightest = 50 · #F9F1FEDarkest = 950 · #2E0349
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F2E3FC;
  --brand-200: #E4C0FB;
  --brand-300: #D38FFE;
  --brand-400: #BD58FE;
  --brand-500: #af34fe;
  --brand-600: #9501F4;
  --brand-700: #7C01CB;
  --brand-800: #6301A2;
  --brand-900: #490575;
  --brand-950: #2E0349;
  --brand: #af34fe;
  --brand-ink: #000000;
}

Colors that work with #af34fe

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#DBC0ED
Hairlines and dividers
Muted text#7B4B9B
Captions on the surface
Accent#83CC00
Second voice, not a rival
Dark variant#4D017F
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 #af34fe

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#83FE34
Analogous left#4A34FE
Analogous right#FE34E8
Split-complement 1#E8FE34
Split-complement 2#34FE4A
Triadic 1#FEAF34
Triadic 2#34FEAF
Tetradic#FE4A34

RGB percentages

Red68.6%
Green20.4%
Blue99.6%

CMYK percentages

Cyan31.1%
Magenta79.5%
Yellow0.0%
Key (black)0.4%

Color previews

#af34fe text on a black background

contrast 4.75:1

Card sample

#af34fe text on a white background

contrast 4.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af34fe

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.

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

#af34fe, answered

What color is #af34fe?

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

What is the RGB value of #af34fe?

rgb(175, 52, 254) — 175 red, 52 green and 254 blue out of 255, or 68.6% / 20.4% / 99.6% by channel.

Is #af34fe a light or a dark color?

It is a mid-tone. Relative luminance is 0.1873 and perceived brightness is 53%, so black text on it reaches 4.75:1.

Should I use black or white text on #af34fe?

Black. It scores 4.75:1 against #af34fe, versus 4.43:1 for white — AA at any size.

What is the complementary color of #af34fe?

#83FE34 sits directly opposite on the wheel. Softer options are the split-complements #E8FE34 and #34FE4A, which give the same contrast with far less vibration.

What colors go well with #af34fe?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #83CC00 as an accent and #4D017F for hover and pressed states. For a palette, the analogous pair #4A34FE and #FE34E8 stays calm, while #83FE34 is the loudest partner.

What is #af34fe in CMYK for printing?

cmyk(31%, 80%, 0%, 0%). 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 #af34fe 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 #F934FE; nudged cooler, #6433FF.

Work with #af34fe in the Color Lab