Skip to content

#af4cf5

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

RGB
175, 76, 245
HSL
275°, 89%, 63%
CMYK
29, 69, 0, 4
Luminance
0.2088

At a glance

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

Hex
#af4cf5
Hue
275°
violet
Saturation
89%
electric
Lightness
63%
balanced
Brightness
96%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2088
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.18:1
Closest name
Medium Orchid
ΔE2000 6.2
Where it sits
Hue275° of 360°
Saturation89%
Lightness63%
Temperature
Warm ← → Cool64% 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#af4cf5
RGBrgb(175, 76, 245)
HSLhsl(275, 89%, 63%)
CMYKcmyk(29%, 69%, 0%, 4%)
LABlab(52.8 67.6 -68.0)
LCHlch(52.8 95.9 314.8)
OKLCHoklch(0.623 0.243 307.5)
Decimal11488501
Display P3color(display-p3 0.686 0.298 0.961)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4cf5 on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#af4cf5 on black: 5.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007BFA
deuteranopia · #1C7FF1
tritanopia · #A4729B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af4cf5 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8F2FD
#F2E5FB
#E2C4F8
#CF95F9
#af4cf5
#A02AF3
#8D0DE8
#760BC1
#5E099B
#460B70
#2C0746
Base = 400Lightest = 50 · #F8F2FDDarkest = 950 · #2C0746
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F2E5FB;
  --brand-200: #E2C4F8;
  --brand-300: #CF95F9;
  --brand-400: #af4cf5;
  --brand-500: #A02AF3;
  --brand-600: #8D0DE8;
  --brand-700: #760BC1;
  --brand-800: #5E099B;
  --brand-900: #460B70;
  --brand-950: #2C0746;
  --brand: #af4cf5;
  --brand-ink: #000000;
}

Colors that work with #af4cf5

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#DAC0ED
Hairlines and dividers
Muted text#7A4B9B
Captions on the surface
Accent#86C606
Second voice, not a rival
Dark variant#490779
Hover, pressed, headers
Light variant#F4E7FE
Selected rows, tints
Dark surface#1D1424
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 #af4cf5

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#92F54C
Analogous left#5A4CF5
Analogous right#F54CE7
Split-complement 1#E7F54C
Split-complement 2#4CF55A
Triadic 1#F5AF4C
Triadic 2#4CF5AF
Tetradic#F55A4C

RGB percentages

Red68.6%
Green29.8%
Blue96.1%

CMYK percentages

Cyan28.6%
Magenta69.0%
Yellow0.0%
Key (black)3.9%

Color previews

#af4cf5 text on a black background

contrast 5.18:1

Card sample

#af4cf5 text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4cf5

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.

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

#af4cf5, answered

What color is #af4cf5?

#af4cf5 is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.2). It sits at 275° on the hue wheel with 89% saturation and 63% lightness, which reads as cool.

What is the RGB value of #af4cf5?

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

Is #af4cf5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2088 and perceived brightness is 55%, so black text on it reaches 5.18:1.

Should I use black or white text on #af4cf5?

Black. It scores 5.18:1 against #af4cf5, versus 4.06:1 for white — AA at any size.

What is the complementary color of #af4cf5?

#92F54C sits directly opposite on the wheel. Softer options are the split-complements #E7F54C and #4CF55A, which give the same contrast with far less vibration.

What colors go well with #af4cf5?

For interface work: #F8F4FA as the surface, #DAC0ED for borders, #7A4B9B for secondary text, #86C606 as an accent and #490779 for hover and pressed states. For a palette, the analogous pair #5A4CF5 and #F54CE7 stays calm, while #92F54C is the loudest partner.

What is #af4cf5 in CMYK for printing?

cmyk(29%, 69%, 0%, 4%). 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 #af4cf5 warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #ED4CF5; nudged cooler, #704AF7.

Work with #af4cf5 in the Color Lab