Skip to content

#522ecf

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

RGB
82, 46, 207
HSL
253°, 64%, 50%
CMYK
60, 78, 0, 19
Luminance
0.0825

At a glance

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

Hex
#522ecf
Hue
253°
blue
Saturation
64%
vivid
Lightness
50%
balanced
Brightness
81%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0825
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
7.92:1
Closest name
Blue
ΔE2000 6.5
Where it sits
Hue253° of 360°
Saturation64%
Lightness50%
Temperature
Warm ← → Cool76% 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#522ecf
RGBrgb(82, 46, 207)
HSLhsl(253, 64%, 50%)
CMYKcmyk(60%, 78%, 0%, 19%)
LABlab(34.5 56.8 -76.7)
LCHlch(34.5 95.4 306.5)
OKLCHoklch(0.461 0.227 283.2)
Decimal5385935
Display P3color(display-p3 0.322 0.180 0.812)

Copy-ready code

/* CSS */
color: #522ecf;
background-color: #522ecf;
/* Tailwind (arbitrary) */
class="text-[#522ecf] bg-[#522ecf]"
/* SCSS */
$brand: #522ecf;
/* SwiftUI */
Color(red: 0.322, green: 0.180, blue: 0.812)
/* Android */
Color.parseColor("#522ecf")
/* Flutter */
Color(0xFF522ECF)
/* Python / OpenCV (BGR) */
(207, 46, 82)

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

Accessibility — WCAG contrast

Aa
#522ecf on white: 7.92:1
AA ✓ pass · AA-large · AAA
Aa
#522ecf on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0056D3
deuteranopia · #004CCC
tritanopia · #005E7E

Color scale — 50 to 950

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

#F5F4FB
#ECE8F7
#D4CBF0
#B3A3EB
#8D75E0
#6747D6
#522ecf
#4225A7
#351E85
#291961
#1A103D
Base = 600Lightest = 50 · #F5F4FBDarkest = 950 · #1A103D
:root {
  --brand-50: #F5F4FB;
  --brand-100: #ECE8F7;
  --brand-200: #D4CBF0;
  --brand-300: #B3A3EB;
  --brand-400: #8D75E0;
  --brand-500: #6747D6;
  --brand-600: #522ecf;
  --brand-700: #4225A7;
  --brand-800: #351E85;
  --brand-900: #291961;
  --brand-950: #1A103D;
  --brand: #522ecf;
  --brand-ink: #ffffff;
}

Colors that work with #522ecf

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#CAC0ED
Hairlines and dividers
Muted text#5D4B9B
Captions on the surface
Accent#ABA721
Second voice, not a rival
Dark variant#291768
Hover, pressed, headers
Light variant#EEEAFA
Selected rows, tints
Dark surface#171424
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 #522ecf

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#ABCF2E
Analogous left#2E5BCF
Analogous right#A22ECF
Split-complement 1#CFA22E
Split-complement 2#5BCF2E
Triadic 1#CF522E
Triadic 2#2ECF52
Tetradic#CF2E5B

RGB percentages

Red32.2%
Green18.0%
Blue81.2%

CMYK percentages

Cyan60.4%
Magenta77.8%
Yellow0.0%
Key (black)18.8%

Color previews

#522ecf text on a black background

contrast 2.65:1

Card sample

#522ecf text on a white background

contrast 7.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(82, 46, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 46, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #522ecf;
background: linear-gradient(135deg, #522ecf, #BD2ECF);

Monochromatic scale

Palettes built from #522ecf

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.

#522ecf in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#522ecf, answered

What color is #522ecf?

#522ecf is a balanced vivid blue, closest to Blue (ΔE2000 6.5). It sits at 253° on the hue wheel with 64% saturation and 50% lightness, which reads as cool.

What is the RGB value of #522ecf?

rgb(82, 46, 207) — 82 red, 46 green and 207 blue out of 255, or 32.2% / 18% / 81.2% by channel.

Is #522ecf a light or a dark color?

It is a dark color. Relative luminance is 0.0825 and perceived brightness is 35%, so white text on it reaches 7.92:1.

Should I use black or white text on #522ecf?

White. It scores 7.92:1 against #522ecf, versus 2.65:1 for black — AAA at any size.

What is the complementary color of #522ecf?

#ABCF2E sits directly opposite on the wheel. Softer options are the split-complements #CFA22E and #5BCF2E, which give the same contrast with far less vibration.

What colors go well with #522ecf?

For interface work: #F6F4FA as the surface, #CAC0ED for borders, #5D4B9B for secondary text, #ABA721 as an accent and #291768 for hover and pressed states. For a palette, the analogous pair #2E5BCF and #A22ECF stays calm, while #ABCF2E is the loudest partner.

What is #522ecf in CMYK for printing?

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

Is #522ecf warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8D2ECF; nudged cooler, #2C43D1.

Work with #522ecf in the Color Lab