Skip to content

#5a2acf

a balanced, vivid violet · cool · closest name: Blue

RGB
90, 42, 207
HSL
258°, 66%, 49%
CMYK
57, 80, 0, 19
Luminance
0.0833

At a glance

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

Hex
#5a2acf
Hue
258°
violet
Saturation
66%
vivid
Lightness
49%
balanced
Brightness
81%
HSV value
Perceived
36%
weighted brightness
Luminance
0.0833
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.87:1
Closest name
Blue
ΔE2000 6.7
Where it sits
Hue258° of 360°
Saturation66%
Lightness49%
Temperature
Warm ← → Cool74% 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#5a2acf
RGBrgb(90, 42, 207)
HSLhsl(258, 66%, 49%)
CMYKcmyk(57%, 80%, 0%, 19%)
LABlab(34.7 59.4 -76.4)
LCHlch(34.7 96.8 307.9)
OKLCHoklch(0.464 0.230 286.7)
Decimal5909199
Display P3color(display-p3 0.353 0.165 0.812)

Copy-ready code

/* CSS */
color: #5a2acf;
background-color: #5a2acf;
/* Tailwind (arbitrary) */
class="text-[#5a2acf] bg-[#5a2acf]"
/* SCSS */
$brand: #5a2acf;
/* SwiftUI */
Color(red: 0.353, green: 0.165, blue: 0.812)
/* Android */
Color.parseColor("#5a2acf")
/* Flutter */
Color(0xFF5A2ACF)
/* Python / OpenCV (BGR) */
(207, 42, 90)

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#ffffff on #5a2acf · 7.87:1
Use #ffffffAAA at every size.
Aa
White text · 7.87:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.67:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5a2acf as text scores 7.87:1 on white and 2.67:1 on black.

Accessibility — WCAG contrast

Aa
#5a2acf on white: 7.87:1
AA ✓ pass · AA-large · AAA
Aa
#5a2acf on black: 2.67:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0055D4
deuteranopia · #004DCC
tritanopia · #215B7D

Color scale — 50 to 950

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

#F6F3FB
#ECE8F8
#D6CBF1
#B7A2EC
#9473E3
#7044D9
#5a2acf
#4A22AA
#3B1B88
#2E1863
#1D0F3E
Base = 600Lightest = 50 · #F6F3FBDarkest = 950 · #1D0F3E
:root {
  --brand-50: #F6F3FB;
  --brand-100: #ECE8F8;
  --brand-200: #D6CBF1;
  --brand-300: #B7A2EC;
  --brand-400: #9473E3;
  --brand-500: #7044D9;
  --brand-600: #5a2acf;
  --brand-700: #4A22AA;
  --brand-800: #3B1B88;
  --brand-900: #2E1863;
  --brand-950: #1D0F3E;
  --brand: #5a2acf;
  --brand-ink: #ffffff;
}

Colors that work with #5a2acf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#624B9B
Captions on the surface
Accent#A8AE1E
Second voice, not a rival
Dark variant#2E156A
Hover, pressed, headers
Light variant#EFEAFB
Selected rows, tints
Dark surface#191424
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 #5a2acf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#9FCF2A
Analogous left#2A4CCF
Analogous right#AD2ACF
Split-complement 1#CFAD2A
Split-complement 2#4CCF2A
Triadic 1#CF5A2A
Triadic 2#2ACF5A
Tetradic#CF2A4C

RGB percentages

Red35.3%
Green16.5%
Blue81.2%

CMYK percentages

Cyan56.5%
Magenta79.7%
Yellow0.0%
Key (black)18.8%

Color previews

#5a2acf text on a black background

contrast 2.67:1

Card sample

#5a2acf text on a white background

contrast 7.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(90, 42, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 42, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5a2acf;
background: linear-gradient(135deg, #5a2acf, #C82ACF);

Monochromatic scale

Palettes built from #5a2acf

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.

#5a2acf 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.

#5a2acf, answered

What color is #5a2acf?

#5a2acf is a balanced vivid violet, closest to Blue (ΔE2000 6.7). It sits at 258° on the hue wheel with 66% saturation and 49% lightness, which reads as cool.

What is the RGB value of #5a2acf?

rgb(90, 42, 207) — 90 red, 42 green and 207 blue out of 255, or 35.3% / 16.5% / 81.2% by channel.

Is #5a2acf a light or a dark color?

It is a dark color. Relative luminance is 0.0833 and perceived brightness is 36%, so white text on it reaches 7.87:1.

Should I use black or white text on #5a2acf?

White. It scores 7.87:1 against #5a2acf, versus 2.67:1 for black — AAA at any size.

What is the complementary color of #5a2acf?

#9FCF2A sits directly opposite on the wheel. Softer options are the split-complements #CFAD2A and #4CCF2A, which give the same contrast with far less vibration.

What colors go well with #5a2acf?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #624B9B for secondary text, #A8AE1E as an accent and #2E156A for hover and pressed states. For a palette, the analogous pair #2A4CCF and #AD2ACF stays calm, while #9FCF2A is the loudest partner.

What is #5a2acf in CMYK for printing?

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

Is #5a2acf warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #972ACF; nudged cooler, #2734D1.

Work with #5a2acf in the Color Lab