Skip to content

#a74df2

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

RGB
167, 77, 242
HSL
273°, 86%, 63%
CMYK
31, 68, 0, 5
Luminance
0.1993

At a glance

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

Hex
#a74df2
Hue
273°
violet
Saturation
86%
electric
Lightness
63%
balanced
Brightness
95%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1993
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.99:1
Closest name
Medium Orchid
ΔE2000 6.8
Where it sits
Hue273° of 360°
Saturation86%
Lightness63%
Temperature
Warm ← → Cool65% 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#a74df2
RGBrgb(167, 77, 242)
HSLhsl(273, 86%, 63%)
CMYKcmyk(31%, 68%, 0%, 5%)
LABlab(51.8 65.0 -68.0)
LCHlch(51.8 94.1 313.7)
OKLCHoklch(0.613 0.237 305.4)
Decimal10964466
Display P3color(display-p3 0.655 0.302 0.949)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a74df2 on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#a74df2 on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0079F7
deuteranopia · #0B7CEE
tritanopia · #99729A

Color scale — 50 to 950

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

#F8F2FD
#F1E5FA
#E0C5F7
#CB96F7
#a74df2
#982EF0
#8411E4
#6E0EBE
#580B98
#420D6E
#290845
Base = 400Lightest = 50 · #F8F2FDDarkest = 950 · #290845
:root {
  --brand-50: #F8F2FD;
  --brand-100: #F1E5FA;
  --brand-200: #E0C5F7;
  --brand-300: #CB96F7;
  --brand-400: #a74df2;
  --brand-500: #982EF0;
  --brand-600: #8411E4;
  --brand-700: #6E0EBE;
  --brand-800: #580B98;
  --brand-900: #420D6E;
  --brand-950: #290845;
  --brand: #a74df2;
  --brand-ink: #000000;
}

Colors that work with #a74df2

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#D8C0ED
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#8CC20A
Second voice, not a rival
Dark variant#450977
Hover, pressed, headers
Light variant#F3E7FD
Selected rows, tints
Dark surface#1D1424
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 #a74df2

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#98F24D
Analogous left#544DF2
Analogous right#F24DEB
Split-complement 1#EBF24D
Split-complement 2#4DF254
Triadic 1#F2A74D
Triadic 2#4DF2A7
Tetradic#F2544D

RGB percentages

Red65.5%
Green30.2%
Blue94.9%

CMYK percentages

Cyan31.0%
Magenta68.2%
Yellow0.0%
Key (black)5.1%

Color previews

#a74df2 text on a black background

contrast 4.99:1

Card sample

#a74df2 text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a74df2

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.

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

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

#a74df2, answered

What color is #a74df2?

#a74df2 is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.8). It sits at 273° on the hue wheel with 86% saturation and 63% lightness, which reads as cool.

What is the RGB value of #a74df2?

rgb(167, 77, 242) — 167 red, 77 green and 242 blue out of 255, or 65.5% / 30.2% / 94.9% by channel.

Is #a74df2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1993 and perceived brightness is 53%, so black text on it reaches 4.99:1.

Should I use black or white text on #a74df2?

Black. It scores 4.99:1 against #a74df2, versus 4.21:1 for white — AA at any size.

What is the complementary color of #a74df2?

#98F24D sits directly opposite on the wheel. Softer options are the split-complements #EBF24D and #4DF254, which give the same contrast with far less vibration.

What colors go well with #a74df2?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #8CC20A as an accent and #450977 for hover and pressed states. For a palette, the analogous pair #544DF2 and #F24DEB stays calm, while #98F24D is the loudest partner.

What is #a74df2 in CMYK for printing?

cmyk(31%, 68%, 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 #a74df2 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E34DF2; nudged cooler, #694BF4.

Work with #a74df2 in the Color Lab