Skip to content

#a751fd

a light, electric violet · cool · closest name: Medium Orchid

RGB
167, 81, 253
HSL
270°, 98%, 66%
CMYK
34, 68, 0, 1
Luminance
0.2119

At a glance

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

Hex
#a751fd
Hue
270°
violet
Saturation
98%
electric
Lightness
66%
light
Brightness
99%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2119
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.24:1
Closest name
Medium Orchid
ΔE2000 7.8
Where it sits
Hue270° of 360°
Saturation98%
Lightness66%
Temperature
Warm ← → Cool67% 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#a751fd
RGBrgb(167, 81, 253)
HSLhsl(270, 98%, 66%)
CMYKcmyk(34%, 68%, 0%, 1%)
LABlab(53.2 65.7 -71.9)
LCHlch(53.2 97.4 312.4)
OKLCHoklch(0.625 0.243 302.8)
Decimal10965501
Display P3color(display-p3 0.655 0.318 0.992)

Copy-ready code

/* CSS */
color: #a751fd;
background-color: #a751fd;
/* Tailwind (arbitrary) */
class="text-[#a751fd] bg-[#a751fd]"
/* SCSS */
$brand: #a751fd;
/* SwiftUI */
Color(red: 0.655, green: 0.318, blue: 0.992)
/* Android */
Color.parseColor("#a751fd")
/* Flutter */
Color(0xFFA751FD)
/* Python / OpenCV (BGR) */
(253, 81, 167)

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 #a751fd · 5.24:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.01:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.24:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #a751fd as text scores 4.01:1 on white and 5.24:1 on black.

Accessibility — WCAG contrast

Aa
#a751fd on white: 4.01:1
AA ✗ fail · AA-large · AAA
Aa
#a751fd on black: 5.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007DFF
deuteranopia · #007EF9
tritanopia · #9679A1

Color scale — 50 to 950

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

#F7F1FD
#F0E4FC
#DEC1FB
#C790FE
#a751fd
#8F21FC
#7A03F2
#6602CA
#5202A1
#3D0674
#260449
Base = 400Lightest = 50 · #F7F1FDDarkest = 950 · #260449
:root {
  --brand-50: #F7F1FD;
  --brand-100: #F0E4FC;
  --brand-200: #DEC1FB;
  --brand-300: #C790FE;
  --brand-400: #a751fd;
  --brand-500: #8F21FC;
  --brand-600: #7A03F2;
  --brand-700: #6602CA;
  --brand-800: #5202A1;
  --brand-900: #3D0674;
  --brand-950: #260449;
  --brand: #a751fd;
  --brand-ink: #000000;
}

Colors that work with #a751fd

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#F7F4FA
Tinted page background
Border#D6C0ED
Hairlines and dividers
Muted text#734B9B
Captions on the surface
Accent#99CC00
Second voice, not a rival
Dark variant#40017E
Hover, pressed, headers
Light variant#F2E6FF
Selected rows, tints
Dark surface#1C1424
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 #a751fd

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#A7FD51
Analogous left#5151FD
Analogous right#FD51FD
Split-complement 1#FDFD51
Split-complement 2#51FD51
Triadic 1#FDA751
Triadic 2#51FDA7
Tetradic#FD5151

RGB percentages

Red65.5%
Green31.8%
Blue99.2%

CMYK percentages

Cyan34.0%
Magenta68.0%
Yellow0.0%
Key (black)0.8%

Color previews

#a751fd text on a black background

contrast 5.24:1

Card sample

#a751fd text on a white background

contrast 4.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(167, 81, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 81, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a751fd;
background: linear-gradient(135deg, #a751fd, #FD51E0);

Monochromatic scale

Palettes built from #a751fd

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.

#a751fd 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

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

#a751fd, answered

What color is #a751fd?

#a751fd is a light electric violet, closest to Medium Orchid (ΔE2000 7.8). It sits at 270° on the hue wheel with 98% saturation and 66% lightness, which reads as cool.

What is the RGB value of #a751fd?

rgb(167, 81, 253) — 167 red, 81 green and 253 blue out of 255, or 65.5% / 31.8% / 99.2% by channel.

Is #a751fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2119 and perceived brightness is 55%, so black text on it reaches 5.24:1.

Should I use black or white text on #a751fd?

Black. It scores 5.24:1 against #a751fd, versus 4.01:1 for white — AA at any size.

What is the complementary color of #a751fd?

#A7FD51 sits directly opposite on the wheel. Softer options are the split-complements #FDFD51 and #51FD51, which give the same contrast with far less vibration.

What colors go well with #a751fd?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #734B9B for secondary text, #99CC00 as an accent and #40017E for hover and pressed states. For a palette, the analogous pair #5151FD and #FD51FD stays calm, while #A7FD51 is the loudest partner.

What is #a751fd in CMYK for printing?

cmyk(34%, 68%, 0%, 1%). 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 #a751fd warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E651FD; nudged cooler, #674FFF.

Work with #a751fd in the Color Lab