Skip to content

#af4ce1

a balanced, vivid violet · cool · closest name: Medium Orchid

RGB
175, 76, 225
HSL
280°, 71%, 59%
CMYK
22, 66, 0, 12
Luminance
0.1972

At a glance

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

Hex
#af4ce1
Hue
280°
violet
Saturation
71%
vivid
Lightness
59%
balanced
Brightness
88%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1972
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.94:1
Closest name
Medium Orchid
ΔE2000 4.2
Where it sits
Hue280° of 360°
Saturation71%
Lightness59%
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#af4ce1
RGBrgb(175, 76, 225)
HSLhsl(280, 71%, 59%)
CMYKcmyk(22%, 66%, 0%, 12%)
LABlab(51.5 63.4 -58.8)
LCHlch(51.5 86.5 317.1)
OKLCHoklch(0.610 0.224 312.2)
Decimal11488481
Display P3color(display-p3 0.686 0.298 0.882)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4ce1 on white: 4.25:1
AA ✗ fail · AA-large · AAA
Aa
#af4ce1 on black: 4.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0076E5
deuteranopia · #3E7DDE
tritanopia · #A96A90

Color scale — 50 to 950

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

#F9F3FC
#F3E7F8
#E5C9F3
#D49FEF
#BF6FE7
#af4ce1
#9723D2
#7E1DAF
#65178C
#4A1565
#2F0D3F
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #2F0D3F
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F3E7F8;
  --brand-200: #E5C9F3;
  --brand-300: #D49FEF;
  --brand-400: #BF6FE7;
  --brand-500: #af4ce1;
  --brand-600: #9723D2;
  --brand-700: #7E1DAF;
  --brand-800: #65178C;
  --brand-900: #4A1565;
  --brand-950: #2F0D3F;
  --brand: #af4ce1;
  --brand-ink: #000000;
}

Colors that work with #af4ce1

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#DEC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#73B319
Second voice, not a rival
Dark variant#4F126D
Hover, pressed, headers
Light variant#F5E9FB
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 #af4ce1

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#7EE14C
Analogous left#654CE1
Analogous right#E14CC8
Split-complement 1#C8E14C
Split-complement 2#4CE165
Triadic 1#E1AF4C
Triadic 2#4CE1AF
Tetradic#E1654C

RGB percentages

Red68.6%
Green29.8%
Blue88.2%

CMYK percentages

Cyan22.2%
Magenta66.2%
Yellow0.0%
Key (black)11.8%

Color previews

#af4ce1 text on a black background

contrast 4.94:1

Card sample

#af4ce1 text on a white background

contrast 4.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4ce1

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.

#af4ce1 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

Converts to four-color process without much drama. Proof it anyway.

#af4ce1, answered

What color is #af4ce1?

#af4ce1 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 4.2). It sits at 280° on the hue wheel with 71% saturation and 59% lightness, which reads as cool.

What is the RGB value of #af4ce1?

rgb(175, 76, 225) — 175 red, 76 green and 225 blue out of 255, or 68.6% / 29.8% / 88.2% by channel.

Is #af4ce1 a light or a dark color?

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

Should I use black or white text on #af4ce1?

Black. It scores 4.94:1 against #af4ce1, versus 4.25:1 for white — AA at any size.

What is the complementary color of #af4ce1?

#7EE14C sits directly opposite on the wheel. Softer options are the split-complements #C8E14C and #4CE165, which give the same contrast with far less vibration.

What colors go well with #af4ce1?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #804B9B for secondary text, #73B319 as an accent and #4F126D for hover and pressed states. For a palette, the analogous pair #654CE1 and #E14CC8 stays calm, while #7EE14C is the loudest partner.

What is #af4ce1 in CMYK for printing?

cmyk(22%, 66%, 0%, 12%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #af4ce1 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 #E14CDC; nudged cooler, #784AE3.

Work with #af4ce1 in the Color Lab