Skip to content

#8f8afb

a light, electric blue · cool · closest name: Medium Purple

RGB
143, 138, 251
HSL
243°, 93%, 76%
CMYK
43, 45, 0, 2
Luminance
0.3098

At a glance

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

Hex
#8f8afb
Hue
243°
blue
Saturation
93%
electric
Lightness
76%
light
Brightness
98%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3098
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.20:1
Closest name
Medium Purple
ΔE2000 9.3
Where it sits
Hue243° of 360°
Saturation93%
Lightness76%
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#8f8afb
RGBrgb(143, 138, 251)
HSLhsl(243, 93%, 76%)
CMYKcmyk(43%, 45%, 0%, 2%)
LABlab(62.5 29.4 -55.9)
LCHlch(62.5 63.2 297.8)
OKLCHoklch(0.688 0.163 283.3)
Decimal9407227
Display P3color(display-p3 0.561 0.541 0.984)

Copy-ready code

/* CSS */
color: #8f8afb;
background-color: #8f8afb;
/* Tailwind (arbitrary) */
class="text-[#8f8afb] bg-[#8f8afb]"
/* SCSS */
$brand: #8f8afb;
/* SwiftUI */
Color(red: 0.561, green: 0.541, blue: 0.984)
/* Android */
Color.parseColor("#8f8afb")
/* Flutter */
Color(0xFF8F8AFB)
/* Python / OpenCV (BGR) */
(251, 138, 143)

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 #8f8afb · 7.20:1
Use #000000AAA at every size.
Aa
White text · 2.92:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.20:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #8f8afb as text scores 2.92:1 on white and 7.20:1 on black.

Accessibility — WCAG contrast

Aa
#8f8afb on white: 2.92:1
AA ✗ fail · AA-large · AAA
Aa
#8f8afb on black: 7.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5E9BFF
deuteranopia · #5993F8
tritanopia · #6DA1B6

Color scale — 50 to 950

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

#F2F2FD
#E5E4FB
#C5C2F9
#8f8afb
#635CF9
#2F26F8
#1208ED
#0F07C5
#0C059E
#0D0972
#080547
Base = 300Lightest = 50 · #F2F2FDDarkest = 950 · #080547
:root {
  --brand-50: #F2F2FD;
  --brand-100: #E5E4FB;
  --brand-200: #C5C2F9;
  --brand-300: #8f8afb;
  --brand-400: #635CF9;
  --brand-500: #2F26F8;
  --brand-600: #1208ED;
  --brand-700: #0F07C5;
  --brand-800: #0C059E;
  --brand-900: #0D0972;
  --brand-950: #080547;
  --brand: #8f8afb;
  --brand-ink: #000000;
}

Colors that work with #8f8afb

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#4E4B9B
Captions on the surface
Accent#C9A003
Second voice, not a rival
Dark variant#0A047B
Hover, pressed, headers
Light variant#E7E6FE
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 #8f8afb

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#F6FB8A
Analogous left#8ABDFB
Analogous right#C88AFB
Split-complement 1#FBC88A
Split-complement 2#BDFB8A
Triadic 1#FB8F8A
Triadic 2#8AFB8F
Tetradic#FB8ABD

RGB percentages

Red56.1%
Green54.1%
Blue98.4%

CMYK percentages

Cyan43.0%
Magenta45.0%
Yellow0.0%
Key (black)1.6%

Color previews

#8f8afb text on a black background

contrast 7.20:1

Card sample

#8f8afb text on a white background

contrast 2.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 138, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 138, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f8afb;
background: linear-gradient(135deg, #8f8afb, #DA8AFB);

Monochromatic scale

Palettes built from #8f8afb

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.

#8f8afb 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.

#8f8afb, answered

What color is #8f8afb?

#8f8afb is a light electric blue, closest to Medium Purple (ΔE2000 9.3). It sits at 243° on the hue wheel with 93% saturation and 76% lightness, which reads as cool.

What is the RGB value of #8f8afb?

rgb(143, 138, 251) — 143 red, 138 green and 251 blue out of 255, or 56.1% / 54.1% / 98.4% by channel.

Is #8f8afb a light or a dark color?

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

Should I use black or white text on #8f8afb?

Black. It scores 7.20:1 against #8f8afb, versus 2.92:1 for white — AAA at any size.

What is the complementary color of #8f8afb?

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

What colors go well with #8f8afb?

For interface work: #F5F4FA as the surface, #C2C0ED for borders, #4E4B9B for secondary text, #C9A003 as an accent and #0A047B for hover and pressed states. For a palette, the analogous pair #8ABDFB and #C88AFB stays calm, while #F6FB8A is the loudest partner.

What is #8f8afb in CMYK for printing?

cmyk(43%, 45%, 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 #8f8afb 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 #B98AFB; nudged cooler, #89AAFC.

Work with #8f8afb in the Color Lab