Skip to content

#af7ce5

a light, vivid violet · cool · closest name: Medium Purple

RGB
175, 124, 229
HSL
269°, 67%, 69%
CMYK
24, 46, 0, 10
Luminance
0.2919

At a glance

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

Hex
#af7ce5
Hue
269°
violet
Saturation
67%
vivid
Lightness
69%
light
Brightness
90%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2919
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.84:1
Closest name
Medium Purple
ΔE2000 6.3
Where it sits
Hue269° of 360°
Saturation67%
Lightness69%
Temperature
Warm ← → Cool67% 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#af7ce5
RGBrgb(175, 124, 229)
HSLhsl(269, 67%, 69%)
CMYKcmyk(24%, 46%, 0%, 10%)
LABlab(61.0 40.0 -46.0)
LCHlch(61.0 61.0 311.0)
OKLCHoklch(0.680 0.157 305.0)
Decimal11500773
Display P3color(display-p3 0.686 0.486 0.898)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ce5 on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#af7ce5 on black: 6.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6092E9
deuteranopia · #6D93E2
tritanopia · #A68EA6

Color scale — 50 to 950

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

#F7F3FB
#EFE8F8
#DDCAF1
#C6A1EC
#af7ce5
#8D44DA
#7829CC
#6422AA
#501B88
#3C1863
#260F3E
Base = 400Lightest = 50 · #F7F3FBDarkest = 950 · #260F3E
:root {
  --brand-50: #F7F3FB;
  --brand-100: #EFE8F8;
  --brand-200: #DDCAF1;
  --brand-300: #C6A1EC;
  --brand-400: #af7ce5;
  --brand-500: #8D44DA;
  --brand-600: #7829CC;
  --brand-700: #6422AA;
  --brand-800: #501B88;
  --brand-900: #3C1863;
  --brand-950: #260F3E;
  --brand: #af7ce5;
  --brand-ink: #000000;
}

Colors that work with #af7ce5

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#F7F4FA
Tinted page background
Border#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#8CAE1E
Second voice, not a rival
Dark variant#3E156A
Hover, pressed, headers
Light variant#F2EAFB
Selected rows, tints
Dark surface#1C1424
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 #af7ce5

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#B2E57C
Analogous left#7C7DE5
Analogous right#E37CE5
Split-complement 1#E5E37C
Split-complement 2#7DE57C
Triadic 1#E5AF7C
Triadic 2#7CE5AF
Tetradic#E57C7D

RGB percentages

Red68.6%
Green48.6%
Blue89.8%

CMYK percentages

Cyan23.6%
Magenta45.9%
Yellow0.0%
Key (black)10.2%

Color previews

#af7ce5 text on a black background

contrast 6.84:1

Card sample

#af7ce5 text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ce5

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.

#af7ce5 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#af7ce5, answered

What color is #af7ce5?

#af7ce5 is a light vivid violet, closest to Medium Purple (ΔE2000 6.3). It sits at 269° on the hue wheel with 67% saturation and 69% lightness, which reads as cool.

What is the RGB value of #af7ce5?

rgb(175, 124, 229) — 175 red, 124 green and 229 blue out of 255, or 68.6% / 48.6% / 89.8% by channel.

Is #af7ce5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2919 and perceived brightness is 61%, so black text on it reaches 6.84:1.

Should I use black or white text on #af7ce5?

Black. It scores 6.84:1 against #af7ce5, versus 3.07:1 for white — AA at any size.

What is the complementary color of #af7ce5?

#B2E57C sits directly opposite on the wheel. Softer options are the split-complements #E5E37C and #7DE57C, which give the same contrast with far less vibration.

What colors go well with #af7ce5?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #8CAE1E as an accent and #3E156A for hover and pressed states. For a palette, the analogous pair #7C7DE5 and #E37CE5 stays calm, while #B2E57C is the loudest partner.

What is #af7ce5 in CMYK for printing?

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

Is #af7ce5 warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D57CE5; nudged cooler, #877AE7.

Work with #af7ce5 in the Color Lab