Skip to content

#af02f0

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

RGB
175, 2, 240
HSL
284°, 98%, 48%
CMYK
27, 99, 0, 6
Luminance
0.1545

At a glance

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

Hex
#af02f0
Hue
284°
violet
Saturation
98%
electric
Lightness
48%
balanced
Brightness
94%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1545
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.13:1
Closest name
Dark Orchid
ΔE2000 5.3
Where it sits
Hue284° of 360°
Saturation98%
Lightness48%
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#af02f0
RGBrgb(175, 2, 240)
HSLhsl(284, 98%, 48%)
CMYKcmyk(27%, 99%, 0%, 6%)
LABlab(46.2 84.6 -75.8)
LCHlch(46.2 113.7 318.1)
OKLCHoklch(0.576 0.288 311.6)
Decimal11469552
Display P3color(display-p3 0.686 0.008 0.941)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af02f0 on white: 5.13:1
AA ✓ pass · AA-large · AAA
Aa
#af02f0 on black: 4.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0067F5
deuteranopia · #0070EC
tritanopia · #A6578D

Color scale — 50 to 950

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

#FAF1FD
#F5E3FC
#EBC1FB
#E090FE
#D058FE
#C121FD
#af02f0
#9302CA
#7601A2
#560675
#360449
Base = 600Lightest = 50 · #FAF1FDDarkest = 950 · #360449
:root {
  --brand-50: #FAF1FD;
  --brand-100: #F5E3FC;
  --brand-200: #EBC1FB;
  --brand-300: #E090FE;
  --brand-400: #D058FE;
  --brand-500: #C121FD;
  --brand-600: #af02f0;
  --brand-700: #9302CA;
  --brand-800: #7601A2;
  --brand-900: #560675;
  --brand-950: #360449;
  --brand: #af02f0;
  --brand-ink: #ffffff;
}

Colors that work with #af02f0

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#6BCC00
Second voice, not a rival
Dark variant#5C017E
Hover, pressed, headers
Light variant#F8E6FF
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 #af02f0

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#43F002
Analogous left#3802F0
Analogous right#F002BA
Split-complement 1#BAF002
Split-complement 2#02F038
Triadic 1#F0AF02
Triadic 2#02F0AF
Tetradic#F03802

RGB percentages

Red68.6%
Green0.8%
Blue94.1%

CMYK percentages

Cyan27.1%
Magenta99.2%
Yellow0.0%
Key (black)5.9%

Color previews

#af02f0 text on a black background

contrast 4.09:1

Card sample

#af02f0 text on a white background

contrast 5.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af02f0

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.

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

#af02f0, answered

What color is #af02f0?

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

What is the RGB value of #af02f0?

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

Is #af02f0 a light or a dark color?

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

Should I use black or white text on #af02f0?

White. It scores 5.13:1 against #af02f0, versus 4.09:1 for black — AA at any size.

What is the complementary color of #af02f0?

#43F002 sits directly opposite on the wheel. Softer options are the split-complements #BAF002 and #02F038, which give the same contrast with far less vibration.

What colors go well with #af02f0?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6BCC00 as an accent and #5C017E for hover and pressed states. For a palette, the analogous pair #3802F0 and #F002BA stays calm, while #43F002 is the loudest partner.

What is #af02f0 in CMYK for printing?

cmyk(27%, 99%, 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 #af02f0 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 #F002DA; nudged cooler, #5700F2.

Work with #af02f0 in the Color Lab