Skip to content

#a751df

a balanced, vivid violet · cool · closest name: Medium Orchid

RGB
167, 81, 223
HSL
276°, 69%, 60%
CMYK
25, 64, 0, 13
Luminance
0.1943

At a glance

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

Hex
#a751df
Hue
276°
violet
Saturation
69%
vivid
Lightness
60%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1943
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.89:1
Closest name
Medium Orchid
ΔE2000 4.9
Where it sits
Hue276° of 360°
Saturation69%
Lightness60%
Temperature
Warm ← → Cool63% 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#a751df
RGBrgb(167, 81, 223)
HSLhsl(276, 69%, 60%)
CMYKcmyk(25%, 64%, 0%, 13%)
LABlab(51.2 59.0 -58.3)
LCHlch(51.2 82.9 315.3)
OKLCHoklch(0.605 0.213 309.3)
Decimal10965471
Display P3color(display-p3 0.655 0.318 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a751df on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#a751df on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0076E3
deuteranopia · #3C7BDC
tritanopia · #9F6E91

Color scale — 50 to 950

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

#F8F3FB
#F1E7F8
#E2CAF2
#CFA0EE
#B771E5
#a751df
#8C26CF
#7520AC
#5D198A
#451664
#2B0E3E
Base = 500Lightest = 50 · #F8F3FBDarkest = 950 · #2B0E3E
:root {
  --brand-50: #F8F3FB;
  --brand-100: #F1E7F8;
  --brand-200: #E2CAF2;
  --brand-300: #CFA0EE;
  --brand-400: #B771E5;
  --brand-500: #a751df;
  --brand-600: #8C26CF;
  --brand-700: #7520AC;
  --brand-800: #5D198A;
  --brand-900: #451664;
  --brand-950: #2B0E3E;
  --brand: #a751df;
  --brand-ink: #000000;
}

Colors that work with #a751df

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#F8F4FA
Tinted page background
Border#DBC0ED
Hairlines and dividers
Muted text#7B4B9B
Captions on the surface
Accent#7CB01C
Second voice, not a rival
Dark variant#49146C
Hover, pressed, headers
Light variant#F4E9FB
Selected rows, tints
Dark surface#1E1424
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 #a751df

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#89DF51
Analogous left#6051DF
Analogous right#DF51D0
Split-complement 1#D0DF51
Split-complement 2#51DF60
Triadic 1#DFA751
Triadic 2#51DFA7
Tetradic#DF6051

RGB percentages

Red65.5%
Green31.8%
Blue87.5%

CMYK percentages

Cyan25.1%
Magenta63.7%
Yellow0.0%
Key (black)12.5%

Color previews

#a751df text on a black background

contrast 4.89:1

Card sample

#a751df text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a751df

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.

#a751df 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
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#a751df, answered

What color is #a751df?

#a751df is a balanced vivid violet, closest to Medium Orchid (ΔE2000 4.9). It sits at 276° on the hue wheel with 69% saturation and 60% lightness, which reads as cool.

What is the RGB value of #a751df?

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

Is #a751df a light or a dark color?

It is a mid-tone. Relative luminance is 0.1943 and perceived brightness is 52%, so black text on it reaches 4.89:1.

Should I use black or white text on #a751df?

Black. It scores 4.89:1 against #a751df, versus 4.30:1 for white — AA at any size.

What is the complementary color of #a751df?

#89DF51 sits directly opposite on the wheel. Softer options are the split-complements #D0DF51 and #51DF60, which give the same contrast with far less vibration.

What colors go well with #a751df?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #7CB01C as an accent and #49146C for hover and pressed states. For a palette, the analogous pair #6051DF and #DF51D0 stays calm, while #89DF51 is the loudest partner.

What is #a751df in CMYK for printing?

cmyk(25%, 64%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #a751df warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DB51DF; nudged cooler, #724FE1.

Work with #a751df in the Color Lab