Skip to content

#afabfa

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

RGB
175, 171, 250
HSL
243°, 89%, 83%
CMYK
30, 32, 0, 2
Luminance
0.4514

At a glance

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

Hex
#afabfa
Hue
243°
blue
Saturation
89%
electric
Lightness
83%
light
Brightness
98%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4514
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
10.03:1
Closest name
Light Steel Blue
ΔE2000 9.8
Where it sits
Hue243° of 360°
Saturation89%
Lightness83%
Temperature
Warm ← → Cool82% 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#afabfa
RGBrgb(175, 171, 250)
HSLhsl(243, 89%, 83%)
CMYKcmyk(30%, 32%, 0%, 2%)
LABlab(73.0 18.7 -38.7)
LCHlch(73.0 43.0 295.8)
OKLCHoklch(0.774 0.112 285.8)
Decimal11512826
Display P3color(display-p3 0.686 0.671 0.980)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afabfa on white: 2.09:1
AA ✗ fail · AA-large · AAA
Aa
#afabfa on black: 10.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #94B5FD
deuteranopia · #93B1F8
tritanopia · #9DB9C7

Color scale — 50 to 950

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

#F2F2FD
#E6E5FB
#afabfa
#9A95F9
#6860F6
#352BF2
#190EE7
#140BC1
#10099A
#100B6F
#0A0745
Base = 200Lightest = 50 · #F2F2FDDarkest = 950 · #0A0745
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E6E5FB;
  --brand-200: #afabfa;
  --brand-300: #9A95F9;
  --brand-400: #6860F6;
  --brand-500: #352BF2;
  --brand-600: #190EE7;
  --brand-700: #140BC1;
  --brand-800: #10099A;
  --brand-900: #100B6F;
  --brand-950: #0A0745;
  --brand: #afabfa;
  --brand-ink: #000000;
}

Colors that work with #afabfa

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#F5F4FA
Tinted page background
Border#C2C0ED
Hairlines and dividers
Muted text#4F4B9B
Captions on the surface
Accent#C59E07
Second voice, not a rival
Dark variant#0D0778
Hover, pressed, headers
Light variant#E8E7FE
Selected rows, tints
Dark surface#141424
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 #afabfa

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#F6FAAB
Analogous left#ABCEFA
Analogous right#D6ABFA
Split-complement 1#FAD6AB
Split-complement 2#CEFAAB
Triadic 1#FAAFAB
Triadic 2#ABFAAF
Tetradic#FAABCE

RGB percentages

Red68.6%
Green67.1%
Blue98.0%

CMYK percentages

Cyan30.0%
Magenta31.6%
Yellow0.0%
Key (black)2.0%

Color previews

#afabfa text on a black background

contrast 10.03:1

Card sample

#afabfa text on a white background

contrast 2.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afabfa

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.

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

#afabfa, answered

What color is #afabfa?

#afabfa is a light electric blue, closest to Light Steel Blue (ΔE2000 9.8). It sits at 243° on the hue wheel with 89% saturation and 83% lightness, which reads as cool.

What is the RGB value of #afabfa?

rgb(175, 171, 250) — 175 red, 171 green and 250 blue out of 255, or 68.6% / 67.1% / 98% by channel.

Is #afabfa a light or a dark color?

It is a mid-tone. Relative luminance is 0.4514 and perceived brightness is 72%, so black text on it reaches 10.03:1.

Should I use black or white text on #afabfa?

Black. It scores 10.03:1 against #afabfa, versus 2.09:1 for white — AAA at any size.

What is the complementary color of #afabfa?

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

What colors go well with #afabfa?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4F4B9B for secondary text, #C59E07 as an accent and #0D0778 for hover and pressed states. For a palette, the analogous pair #ABCEFA and #D6ABFA stays calm, while #F6FAAB is the loudest partner.

What is #afabfa in CMYK for printing?

cmyk(30%, 32%, 0%, 2%). 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 #afabfa warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CCABFA; nudged cooler, #AAC4FB.

Work with #afabfa in the Color Lab