Skip to content

#8f74f2

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

RGB
143, 116, 242
HSL
253°, 83%, 70%
CMYK
41, 52, 0, 5
Luminance
0.2474

At a glance

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

Hex
#8f74f2
Hue
253°
blue
Saturation
83%
electric
Lightness
70%
light
Brightness
95%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2474
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.95:1
Closest name
Medium Purple
ΔE2000 4
Where it sits
Hue253° of 360°
Saturation83%
Lightness70%
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#8f74f2
RGBrgb(143, 116, 242)
HSLhsl(253, 83%, 70%)
CMYKcmyk(41%, 52%, 0%, 5%)
LABlab(56.8 39.6 -60.0)
LCHlch(56.8 71.9 303.4)
OKLCHoklch(0.644 0.182 290.2)
Decimal9401586
Display P3color(display-p3 0.561 0.455 0.949)

Copy-ready code

/* CSS */
color: #8f74f2;
background-color: #8f74f2;
/* Tailwind (arbitrary) */
class="text-[#8f74f2] bg-[#8f74f2]"
/* SCSS */
$brand: #8f74f2;
/* SwiftUI */
Color(red: 0.561, green: 0.455, blue: 0.949)
/* Android */
Color.parseColor("#8f74f2")
/* Flutter */
Color(0xFF8F74F2)
/* Python / OpenCV (BGR) */
(242, 116, 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 #8f74f2 · 5.95:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.53:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.95:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #8f74f2 as text scores 3.53:1 on white and 5.95:1 on black.

Accessibility — WCAG contrast

Aa
#8f74f2 on white: 3.53:1
AA ✗ fail · AA-large · AAA
Aa
#8f74f2 on black: 5.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3B8BF6
deuteranopia · #3E86EF
tritanopia · #738EA8

Color scale — 50 to 950

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

#F5F2FC
#EAE6FA
#D0C6F6
#AC98F5
#8f74f2
#5A32EC
#4115E0
#3611BB
#2B0E95
#230F6C
#160943
Base = 400Lightest = 50 · #F5F2FCDarkest = 950 · #160943
:root {
  --brand-50: #F5F2FC;
  --brand-100: #EAE6FA;
  --brand-200: #D0C6F6;
  --brand-300: #AC98F5;
  --brand-400: #8f74f2;
  --brand-500: #5A32EC;
  --brand-600: #4115E0;
  --brand-700: #3611BB;
  --brand-800: #2B0E95;
  --brand-900: #230F6C;
  --brand-950: #160943;
  --brand: #8f74f2;
  --brand-ink: #000000;
}

Colors that work with #8f74f2

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#5C4B9B
Captions on the surface
Accent#BFB80D
Second voice, not a rival
Dark variant#220B75
Hover, pressed, headers
Light variant#ECE8FD
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 #8f74f2

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#D7F274
Analogous left#7498F2
Analogous right#CE74F2
Split-complement 1#F2CE74
Split-complement 2#98F274
Triadic 1#F28F74
Triadic 2#74F28F
Tetradic#F27498

RGB percentages

Red56.1%
Green45.5%
Blue94.9%

CMYK percentages

Cyan40.9%
Magenta52.1%
Yellow0.0%
Key (black)5.1%

Color previews

#8f74f2 text on a black background

contrast 5.95:1

Card sample

#8f74f2 text on a white background

contrast 3.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8f74f2

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.

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

#8f74f2, answered

What color is #8f74f2?

#8f74f2 is a light electric blue, closest to Medium Purple (ΔE2000 4). It sits at 253° on the hue wheel with 83% saturation and 70% lightness, which reads as cool.

What is the RGB value of #8f74f2?

rgb(143, 116, 242) — 143 red, 116 green and 242 blue out of 255, or 56.1% / 45.5% / 94.9% by channel.

Is #8f74f2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2474 and perceived brightness is 56%, so black text on it reaches 5.95:1.

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

Black. It scores 5.95:1 against #8f74f2, versus 3.53:1 for white — AA at any size.

What is the complementary color of #8f74f2?

#D7F274 sits directly opposite on the wheel. Softer options are the split-complements #F2CE74 and #98F274, which give the same contrast with far less vibration.

What colors go well with #8f74f2?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #BFB80D as an accent and #220B75 for hover and pressed states. For a palette, the analogous pair #7498F2 and #CE74F2 stays calm, while #D7F274 is the loudest partner.

What is #8f74f2 in CMYK for printing?

cmyk(41%, 52%, 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 #8f74f2 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 #BD74F2; nudged cooler, #7286F4.

Work with #8f74f2 in the Color Lab