Skip to content

#af30ec

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

RGB
175, 48, 236
HSL
281°, 83%, 56%
CMYK
26, 80, 0, 8
Luminance
0.1728

At a glance

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

Hex
#af30ec
Hue
281°
violet
Saturation
83%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1728
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.71:1
Closest name
Dark Orchid
ΔE2000 5.7
Where it sits
Hue281° of 360°
Saturation83%
Lightness56%
Temperature
Warm ← → Cool61% 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#af30ec
RGBrgb(175, 48, 236)
HSLhsl(281, 83%, 56%)
CMYKcmyk(26%, 80%, 0%, 8%)
LABlab(48.6 76.0 -69.7)
LCHlch(48.6 103.1 317.5)
OKLCHoklch(0.592 0.263 311.3)
Decimal11481324
Display P3color(display-p3 0.686 0.188 0.925)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af30ec on white: 4.71:1
AA ✓ pass · AA-large · AAA
Aa
#af30ec on black: 4.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006EF1
deuteranopia · #0076E8
tritanopia · #A76090

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af30ec 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
#F3E6FA
#E6C6F6
#D798F6
#C365F1
#af30ec
#9E15E0
#8411BB
#690E95
#4E0E6C
#300944
Base = 500Lightest = 50 · #F9F2FCDarkest = 950 · #300944
:root {
  --brand-50: #F9F2FC;
  --brand-100: #F3E6FA;
  --brand-200: #E6C6F6;
  --brand-300: #D798F6;
  --brand-400: #C365F1;
  --brand-500: #af30ec;
  --brand-600: #9E15E0;
  --brand-700: #8411BB;
  --brand-800: #690E95;
  --brand-900: #4E0E6C;
  --brand-950: #300944;
  --brand: #af30ec;
  --brand-ink: #ffffff;
}

Colors that work with #af30ec

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#DEC0ED
Hairlines and dividers
Muted text#814B9B
Captions on the surface
Accent#73BF0D
Second voice, not a rival
Dark variant#520B75
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 #af30ec

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#6DEC30
Analogous left#5130EC
Analogous right#EC30CB
Split-complement 1#CBEC30
Split-complement 2#30EC51
Triadic 1#ECAF30
Triadic 2#30ECAF
Tetradic#EC5130

RGB percentages

Red68.6%
Green18.8%
Blue92.5%

CMYK percentages

Cyan25.8%
Magenta79.7%
Yellow0.0%
Key (black)7.5%

Color previews

#af30ec text on a black background

contrast 4.46:1

Card sample

#af30ec text on a white background

contrast 4.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af30ec

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.

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

#af30ec, answered

What color is #af30ec?

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

What is the RGB value of #af30ec?

rgb(175, 48, 236) — 175 red, 48 green and 236 blue out of 255, or 68.6% / 18.8% / 92.5% by channel.

Is #af30ec a light or a dark color?

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

Should I use black or white text on #af30ec?

White. It scores 4.71:1 against #af30ec, versus 4.46:1 for black — AA at any size.

What is the complementary color of #af30ec?

#6DEC30 sits directly opposite on the wheel. Softer options are the split-complements #CBEC30 and #30EC51, which give the same contrast with far less vibration.

What colors go well with #af30ec?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #814B9B for secondary text, #73BF0D as an accent and #520B75 for hover and pressed states. For a palette, the analogous pair #5130EC and #EC30CB stays calm, while #6DEC30 is the loudest partner.

What is #af30ec in CMYK for printing?

cmyk(26%, 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 #af30ec warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC30E4; nudged cooler, #692EEE.

Work with #af30ec in the Color Lab