Skip to content

#af35f0

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

RGB
175, 53, 240
HSL
279°, 86%, 58%
CMYK
27, 78, 0, 6
Luminance
0.1795

At a glance

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

Hex
#af35f0
Hue
279°
violet
Saturation
86%
electric
Lightness
58%
balanced
Brightness
94%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1795
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.59:1
Closest name
Dark Orchid
ΔE2000 6.5
Where it sits
Hue279° of 360°
Saturation86%
Lightness58%
Temperature
Warm ← → Cool62% 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#af35f0
RGBrgb(175, 53, 240)
HSLhsl(279, 86%, 58%)
CMYKcmyk(27%, 78%, 0%, 6%)
LABlab(49.4 75.2 -70.7)
LCHlch(49.4 103.2 316.8)
OKLCHoklch(0.598 0.262 310.2)
Decimal11482608
Display P3color(display-p3 0.686 0.208 0.941)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af35f0 on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#af35f0 on black: 4.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0070F5
deuteranopia · #0077EC
tritanopia · #A66493

Color scale — 50 to 950

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

#F9F2FD
#F3E5FA
#E6C5F7
#D697F7
#C162F3
#af35f0
#9A11E4
#810EBE
#670B98
#4C0D6E
#2F0845
Base = 500Lightest = 50 · #F9F2FDDarkest = 950 · #2F0845
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F3E5FA;
  --brand-200: #E6C5F7;
  --brand-300: #D697F7;
  --brand-400: #C162F3;
  --brand-500: #af35f0;
  --brand-600: #9A11E4;
  --brand-700: #810EBE;
  --brand-800: #670B98;
  --brand-900: #4C0D6E;
  --brand-950: #2F0845;
  --brand: #af35f0;
  --brand-ink: #000000;
}

Colors that work with #af35f0

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#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#78C20A
Second voice, not a rival
Dark variant#500977
Hover, pressed, headers
Light variant#F6E7FD
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 #af35f0

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#76F035
Analogous left#5235F0
Analogous right#F035D4
Split-complement 1#D4F035
Split-complement 2#35F052
Triadic 1#F0AF35
Triadic 2#35F0AF
Tetradic#F05235

RGB percentages

Red68.6%
Green20.8%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta77.9%
Yellow0.0%
Key (black)5.9%

Color previews

#af35f0 text on a black background

contrast 4.59:1

Card sample

#af35f0 text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af35f0

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.

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

#af35f0, answered

What color is #af35f0?

#af35f0 is a balanced electric violet, closest to Dark Orchid (ΔE2000 6.5). It sits at 279° on the hue wheel with 86% saturation and 58% lightness, which reads as cool.

What is the RGB value of #af35f0?

rgb(175, 53, 240) — 175 red, 53 green and 240 blue out of 255, or 68.6% / 20.8% / 94.1% by channel.

Is #af35f0 a light or a dark color?

It is a dark color. Relative luminance is 0.1795 and perceived brightness is 52%, so black text on it reaches 4.59:1.

Should I use black or white text on #af35f0?

Black. It scores 4.59:1 against #af35f0, versus 4.57:1 for white — AA at any size.

What is the complementary color of #af35f0?

#76F035 sits directly opposite on the wheel. Softer options are the split-complements #D4F035 and #35F052, which give the same contrast with far less vibration.

What colors go well with #af35f0?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #78C20A as an accent and #500977 for hover and pressed states. For a palette, the analogous pair #5235F0 and #F035D4 stays calm, while #76F035 is the loudest partner.

What is #af35f0 in CMYK for printing?

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

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F035ED; nudged cooler, #6A33F2.

Work with #af35f0 in the Color Lab