Skip to content

#af9df3

a light, electric blue · cool · closest name: Light Steel Blue

RGB
175, 157, 243
HSL
253°, 78%, 78%
CMYK
28, 35, 0, 5
Luminance
0.3970

At a glance

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

Hex
#af9df3
Hue
253°
blue
Saturation
78%
electric
Lightness
78%
light
Brightness
95%
HSV value
Perceived
68%
weighted brightness
Luminance
0.3970
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.94:1
Closest name
Light Steel Blue
ΔE2000 12.4
Where it sits
Hue253° of 360°
Saturation78%
Lightness78%
Temperature
Warm ← → Cool76% 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#af9df3
RGBrgb(175, 157, 243)
HSLhsl(253, 78%, 78%)
CMYKcmyk(28%, 35%, 0%, 5%)
LABlab(69.3 24.8 -40.7)
LCHlch(69.3 47.7 301.4)
OKLCHoklch(0.745 0.123 292.8)
Decimal11509235
Display P3color(display-p3 0.686 0.616 0.953)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af9df3 on white: 2.35:1
AA ✗ fail · AA-large · AAA
Aa
#af9df3 on black: 8.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #86AAF6
deuteranopia · #87A8F1
tritanopia · #A0ACBD

Color scale — 50 to 950

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

#F5F3FC
#EAE6F9
#D1C7F5
#af9df3
#8569ED
#5C37E7
#431BDA
#3816B6
#2D1291
#241169
#160B42
Base = 300Lightest = 50 · #F5F3FCDarkest = 950 · #160B42
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EAE6F9;
  --brand-200: #D1C7F5;
  --brand-300: #af9df3;
  --brand-400: #8569ED;
  --brand-500: #5C37E7;
  --brand-600: #431BDA;
  --brand-700: #3816B6;
  --brand-800: #2D1291;
  --brand-900: #241169;
  --brand-950: #160B42;
  --brand: #af9df3;
  --brand-ink: #000000;
}

Colors that work with #af9df3

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#C9C0ED
Hairlines and dividers
Muted text#5B4B9B
Captions on the surface
Accent#B9B413
Second voice, not a rival
Dark variant#230E72
Hover, pressed, headers
Light variant#ECE8FC
Selected rows, tints
Dark surface#171424
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 #af9df3

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#E1F39D
Analogous left#9DB6F3
Analogous right#DA9DF3
Split-complement 1#F3DA9D
Split-complement 2#B6F39D
Triadic 1#F3AF9D
Triadic 2#9DF3AF
Tetradic#F39DB6

RGB percentages

Red68.6%
Green61.6%
Blue95.3%

CMYK percentages

Cyan28.0%
Magenta35.4%
Yellow0.0%
Key (black)4.7%

Color previews

#af9df3 text on a black background

contrast 8.94:1

Card sample

#af9df3 text on a white background

contrast 2.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af9df3

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.

#af9df3 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af9df3, answered

What color is #af9df3?

#af9df3 is a light electric blue, closest to Light Steel Blue (ΔE2000 12.4). It sits at 253° on the hue wheel with 78% saturation and 78% lightness, which reads as cool.

What is the RGB value of #af9df3?

rgb(175, 157, 243) — 175 red, 157 green and 243 blue out of 255, or 68.6% / 61.6% / 95.3% by channel.

Is #af9df3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3970 and perceived brightness is 68%, so black text on it reaches 8.94:1.

Should I use black or white text on #af9df3?

Black. It scores 8.94:1 against #af9df3, versus 2.35:1 for white — AAA at any size.

What is the complementary color of #af9df3?

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

What colors go well with #af9df3?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5B4B9B for secondary text, #B9B413 as an accent and #230E72 for hover and pressed states. For a palette, the analogous pair #9DB6F3 and #DA9DF3 stays calm, while #E1F39D is the loudest partner.

What is #af9df3 in CMYK for printing?

cmyk(28%, 35%, 0%, 5%). 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 #af9df3 warm or cool?

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

Work with #af9df3 in the Color Lab