Skip to content

#562daf

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

RGB
86, 45, 175
HSL
259°, 59%, 43%
CMYK
51, 74, 0, 31
Luminance
0.0695

At a glance

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

Hex
#562daf
Hue
259°
violet
Saturation
59%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0695
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
8.79:1
Closest name
Rebecca Purple
ΔE2000 5.2
Where it sits
Hue259° of 360°
Saturation59%
Lightness43%
Temperature
Warm ← → Cool73% 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#562daf
RGBrgb(86, 45, 175)
HSLhsl(259, 59%, 43%)
CMYKcmyk(51%, 74%, 0%, 31%)
LABlab(31.7 48.8 -62.5)
LCHlch(31.7 79.3 308.0)
OKLCHoklch(0.433 0.192 290.5)
Decimal5647791
Display P3color(display-p3 0.337 0.176 0.686)

Copy-ready code

/* CSS */
color: #562daf;
background-color: #562daf;
/* Tailwind (arbitrary) */
class="text-[#562daf] bg-[#562daf]"
/* SCSS */
$brand: #562daf;
/* SwiftUI */
Color(red: 0.337, green: 0.176, blue: 0.686)
/* Android */
Color.parseColor("#562daf")
/* Flutter */
Color(0xFF562DAF)
/* Python / OpenCV (BGR) */
(175, 45, 86)

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

Accessibility — WCAG contrast

Aa
#562daf on white: 8.79:1
AA ✓ pass · AA-large · AAA
Aa
#562daf on black: 2.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004DB3
deuteranopia · #0048AD
tritanopia · #37506C

Color scale — 50 to 950

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

#F6F4FB
#EDE9F7
#D7CDEF
#BBA6E8
#9879DD
#764CD1
#6032C3
#562daf
#402182
#311C5E
#1F113B
Base = 700Lightest = 50 · #F6F4FBDarkest = 950 · #1F113B
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EDE9F7;
  --brand-200: #D7CDEF;
  --brand-300: #BBA6E8;
  --brand-400: #9879DD;
  --brand-500: #764CD1;
  --brand-600: #6032C3;
  --brand-700: #562daf;
  --brand-800: #402182;
  --brand-900: #311C5E;
  --brand-950: #1F113B;
  --brand: #562daf;
  --brand-ink: #ffffff;
}

Colors that work with #562daf

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#644B9B
Captions on the surface
Accent#9EA626
Second voice, not a rival
Dark variant#321A65
Hover, pressed, headers
Light variant#EFEBFA
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 #562daf

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#86AF2D
Analogous left#2D45AF
Analogous right#972DAF
Split-complement 1#AF972D
Split-complement 2#45AF2D
Triadic 1#AF562D
Triadic 2#2DAF56
Tetradic#AF2D45

RGB percentages

Red33.7%
Green17.6%
Blue68.6%

CMYK percentages

Cyan50.9%
Magenta74.3%
Yellow0.0%
Key (black)31.4%

Color previews

#562daf text on a black background

contrast 2.39:1

Card sample

#562daf text on a white background

contrast 8.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(86, 45, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 45, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #562daf;
background: linear-gradient(135deg, #562daf, #AC2DAF);

Monochromatic scale

Palettes built from #562daf

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.

#562daf 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.

#562daf, answered

What color is #562daf?

#562daf is a dark vivid violet, closest to Rebecca Purple (ΔE2000 5.2). It sits at 259° on the hue wheel with 59% saturation and 43% lightness, which reads as cool.

What is the RGB value of #562daf?

rgb(86, 45, 175) — 86 red, 45 green and 175 blue out of 255, or 33.7% / 17.6% / 68.6% by channel.

Is #562daf a light or a dark color?

It is a dark color. Relative luminance is 0.0695 and perceived brightness is 33%, so white text on it reaches 8.79:1.

Should I use black or white text on #562daf?

White. It scores 8.79:1 against #562daf, versus 2.39:1 for black — AAA at any size.

What is the complementary color of #562daf?

#86AF2D sits directly opposite on the wheel. Softer options are the split-complements #AF972D and #45AF2D, which give the same contrast with far less vibration.

What colors go well with #562daf?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #9EA626 as an accent and #321A65 for hover and pressed states. For a palette, the analogous pair #2D45AF and #972DAF stays calm, while #86AF2D is the loudest partner.

What is #562daf in CMYK for printing?

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

Is #562daf warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #862DAF; nudged cooler, #2B32B1.

Work with #562daf in the Color Lab