Skip to content

#af9ce3

a light, vivid violet · cool · closest name: Plum

RGB
175, 156, 227
HSL
256°, 56%, 75%
CMYK
23, 31, 0, 11
Luminance
0.3844

At a glance

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

Hex
#af9ce3
Hue
256°
violet
Saturation
56%
vivid
Lightness
75%
light
Brightness
89%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3844
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
8.69:1
Closest name
Plum
ΔE2000 11.3
Where it sits
Hue256° of 360°
Saturation56%
Lightness75%
Temperature
Warm ← → Cool74% 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#af9ce3
RGBrgb(175, 156, 227)
HSLhsl(256, 56%, 75%)
CMYKcmyk(23%, 31%, 0%, 11%)
LABlab(68.3 21.6 -33.4)
LCHlch(68.3 39.7 302.9)
OKLCHoklch(0.736 0.103 296.1)
Decimal11508963
Display P3color(display-p3 0.686 0.612 0.890)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9ce3 on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#af9ce3 on black: 8.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8BA7E6
deuteranopia · #8EA6E1
tritanopia · #A5A8B6

Color scale — 50 to 950

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

#F6F4FB
#EDE9F6
#D6CEEE
#af9ce3
#957CDA
#7250CE
#5B36BF
#4C2D9F
#3C247F
#2F1E5D
#1D133A
Base = 300Lightest = 50 · #F6F4FBDarkest = 950 · #1D133A
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE9F6;
  --brand-200: #D6CEEE;
  --brand-300: #af9ce3;
  --brand-400: #957CDA;
  --brand-500: #7250CE;
  --brand-600: #5B36BF;
  --brand-700: #4C2D9F;
  --brand-800: #3C247F;
  --brand-900: #2F1E5D;
  --brand-950: #1D133A;
  --brand: #af9ce3;
  --brand-ink: #000000;
}

Colors that work with #af9ce3

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#F6F4FA
Tinted page background
Border#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#A1A428
Second voice, not a rival
Dark variant#2F1C63
Hover, pressed, headers
Light variant#EFEBF9
Selected rows, tints
Dark surface#181424
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 #af9ce3

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#D0E39C
Analogous left#9CACE3
Analogous right#D39CE3
Split-complement 1#E3D39C
Split-complement 2#ACE39C
Triadic 1#E3AF9C
Triadic 2#9CE3AF
Tetradic#E39CAC

RGB percentages

Red68.6%
Green61.2%
Blue89.0%

CMYK percentages

Cyan22.9%
Magenta31.3%
Yellow0.0%
Key (black)11.0%

Color previews

#af9ce3 text on a black background

contrast 8.69:1

Card sample

#af9ce3 text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9ce3

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.

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

#af9ce3, answered

What color is #af9ce3?

#af9ce3 is a light vivid violet, closest to Plum (ΔE2000 11.3). It sits at 256° on the hue wheel with 56% saturation and 75% lightness, which reads as cool.

What is the RGB value of #af9ce3?

rgb(175, 156, 227) — 175 red, 156 green and 227 blue out of 255, or 68.6% / 61.2% / 89% by channel.

Is #af9ce3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3844 and perceived brightness is 67%, so black text on it reaches 8.69:1.

Should I use black or white text on #af9ce3?

Black. It scores 8.69:1 against #af9ce3, versus 2.42:1 for white — AAA at any size.

What is the complementary color of #af9ce3?

#D0E39C sits directly opposite on the wheel. Softer options are the split-complements #E3D39C and #ACE39C, which give the same contrast with far less vibration.

What colors go well with #af9ce3?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #A1A428 as an accent and #2F1C63 for hover and pressed states. For a palette, the analogous pair #9CACE3 and #D39CE3 stays calm, while #D0E39C is the loudest partner.

What is #af9ce3 in CMYK for printing?

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

Is #af9ce3 warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C99CE3; nudged cooler, #9BA2E4.

Work with #af9ce3 in the Color Lab