Skip to content

#5a2abc

a balanced, vivid violet · cool · closest name: Rebecca Purple

RGB
90, 42, 188
HSL
260°, 64%, 45%
CMYK
52, 78, 0, 26
Luminance
0.0746

At a glance

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

Hex
#5a2abc
Hue
260°
violet
Saturation
64%
vivid
Lightness
45%
balanced
Brightness
74%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0746
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
8.43:1
Closest name
Rebecca Purple
ΔE2000 6.3
Where it sits
Hue260° of 360°
Saturation64%
Lightness45%
Temperature
Warm ← → Cool72% 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#5a2abc
RGBrgb(90, 42, 188)
HSLhsl(260, 64%, 45%)
CMYKcmyk(52%, 78%, 0%, 26%)
LABlab(32.8 54.3 -68.3)
LCHlch(32.8 87.3 308.5)
OKLCHoklch(0.446 0.209 290.1)
Decimal5909180
Display P3color(display-p3 0.353 0.165 0.737)

Copy-ready code

/* CSS */
color: #5a2abc;
background-color: #5a2abc;
/* Tailwind (arbitrary) */
class="text-[#5a2abc] bg-[#5a2abc]"
/* SCSS */
$brand: #5a2abc;
/* SwiftUI */
Color(red: 0.353, green: 0.165, blue: 0.737)
/* Android */
Color.parseColor("#5a2abc")
/* Flutter */
Color(0xFF5A2ABC)
/* Python / OpenCV (BGR) */
(188, 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 #5a2abc · 8.43:1
Use #ffffffAAA at every size.
Aa
White text · 8.43:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.49:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5a2abc as text scores 8.43:1 on white and 2.49:1 on black.

Accessibility — WCAG contrast

Aa
#5a2abc on white: 8.43:1
AA ✓ pass · AA-large · AAA
Aa
#5a2abc on black: 2.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0050C0
deuteranopia · #004AB9
tritanopia · #365472

Color scale — 50 to 950

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

#F6F4FB
#EDE8F7
#D7CBF0
#BBA3EB
#9975E0
#7648D6
#5a2abc
#5025A7
#401E85
#311961
#1F103D
Base = 600Lightest = 50 · #F6F4FBDarkest = 950 · #1F103D
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE8F7;
  --brand-200: #D7CBF0;
  --brand-300: #BBA3EB;
  --brand-400: #9975E0;
  --brand-500: #7648D6;
  --brand-600: #5a2abc;
  --brand-700: #5025A7;
  --brand-800: #401E85;
  --brand-900: #311961;
  --brand-950: #1F103D;
  --brand: #5a2abc;
  --brand-ink: #ffffff;
}

Colors that work with #5a2abc

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#CEC0ED
Hairlines and dividers
Muted text#654B9B
Captions on the surface
Accent#A0AB21
Second voice, not a rival
Dark variant#321768
Hover, pressed, headers
Light variant#EFEAFA
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 #5a2abc

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#8CBC2A
Analogous left#2A43BC
Analogous right#A32ABC
Split-complement 1#BCA32A
Split-complement 2#43BC2A
Triadic 1#BC5A2A
Triadic 2#2ABC5A
Tetradic#BC2A43

RGB percentages

Red35.3%
Green16.5%
Blue73.7%

CMYK percentages

Cyan52.1%
Magenta77.7%
Yellow0.0%
Key (black)26.3%

Color previews

#5a2abc text on a black background

contrast 2.49:1

Card sample

#5a2abc text on a white background

contrast 8.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5a2abc

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.

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

#5a2abc, answered

What color is #5a2abc?

#5a2abc is a balanced vivid violet, closest to Rebecca Purple (ΔE2000 6.3). It sits at 260° on the hue wheel with 64% saturation and 45% lightness, which reads as cool.

What is the RGB value of #5a2abc?

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

Is #5a2abc a light or a dark color?

It is a dark color. Relative luminance is 0.0746 and perceived brightness is 34%, so white text on it reaches 8.43:1.

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

White. It scores 8.43:1 against #5a2abc, versus 2.49:1 for black — AAA at any size.

What is the complementary color of #5a2abc?

#8CBC2A sits directly opposite on the wheel. Softer options are the split-complements #BCA32A and #43BC2A, which give the same contrast with far less vibration.

What colors go well with #5a2abc?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #654B9B for secondary text, #A0AB21 as an accent and #321768 for hover and pressed states. For a palette, the analogous pair #2A43BC and #A32ABC stays calm, while #8CBC2A is the loudest partner.

What is #5a2abc in CMYK for printing?

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

Is #5a2abc warm or cool?

Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8F2ABC; nudged cooler, #282DBE.

Work with #5a2abc in the Color Lab