Skip to content

#5f09cf

a dark, electric violet · cool · closest name: Blue

RGB
95, 9, 207
HSL
266°, 92%, 42%
CMYK
54, 96, 0, 19
Luminance
0.0713

At a glance

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

Hex
#5f09cf
Hue
266°
violet
Saturation
92%
electric
Lightness
42%
dark
Brightness
81%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0713
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.65:1
Closest name
Blue
ΔE2000 6.5
Where it sits
Hue266° of 360°
Saturation92%
Lightness42%
Temperature
Warm ← → Cool69% 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#5f09cf
RGBrgb(95, 9, 207)
HSLhsl(266, 92%, 42%)
CMYKcmyk(54%, 96%, 0%, 19%)
LABlab(32.1 69.2 -80.6)
LCHlch(32.1 106.2 310.6)
OKLCHoklch(0.448 0.248 290.6)
Decimal6228431
Display P3color(display-p3 0.373 0.035 0.812)

Copy-ready code

/* CSS */
color: #5f09cf;
background-color: #5f09cf;
/* Tailwind (arbitrary) */
class="text-[#5f09cf] bg-[#5f09cf]"
/* SCSS */
$brand: #5f09cf;
/* SwiftUI */
Color(red: 0.373, green: 0.035, blue: 0.812)
/* Android */
Color.parseColor("#5f09cf")
/* Flutter */
Color(0xFF5F09CF)
/* Python / OpenCV (BGR) */
(207, 9, 95)

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

Accessibility — WCAG contrast

Aa
#5f09cf on white: 8.65:1
AA ✓ pass · AA-large · AAA
Aa
#5f09cf on black: 2.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004ED4
deuteranopia · #0047CC
tritanopia · #325379

Color scale — 50 to 950

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

#F7F2FD
#EEE4FB
#DAC3F9
#C093FA
#A15EF8
#8128F6
#6C0AEB
#5f09cf
#48079C
#360A71
#220647
Base = 700Lightest = 50 · #F7F2FDDarkest = 950 · #220647
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EEE4FB;
  --brand-200: #DAC3F9;
  --brand-300: #C093FA;
  --brand-400: #A15EF8;
  --brand-500: #8128F6;
  --brand-600: #6C0AEB;
  --brand-700: #5f09cf;
  --brand-800: #48079C;
  --brand-900: #360A71;
  --brand-950: #220647;
  --brand: #5f09cf;
  --brand-ink: #ffffff;
}

Colors that work with #5f09cf

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#F7F4FA
Tinted page background
Border#D3C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#A3C705
Second voice, not a rival
Dark variant#38057A
Hover, pressed, headers
Light variant#F1E7FE
Selected rows, tints
Dark surface#1B1424
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 #5f09cf

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#79CF09
Analogous left#0916CF
Analogous right#C209CF
Split-complement 1#CFC209
Split-complement 2#16CF09
Triadic 1#CF5F09
Triadic 2#09CF5F
Tetradic#CF0916

RGB percentages

Red37.3%
Green3.5%
Blue81.2%

CMYK percentages

Cyan54.1%
Magenta95.7%
Yellow0.0%
Key (black)18.8%

Color previews

#5f09cf text on a black background

contrast 2.43:1

Card sample

#5f09cf text on a white background

contrast 8.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f09cf

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.

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

#5f09cf, answered

What color is #5f09cf?

#5f09cf is a dark electric violet, closest to Blue (ΔE2000 6.5). It sits at 266° on the hue wheel with 92% saturation and 42% lightness, which reads as cool.

What is the RGB value of #5f09cf?

rgb(95, 9, 207) — 95 red, 9 green and 207 blue out of 255, or 37.3% / 3.5% / 81.2% by channel.

Is #5f09cf a light or a dark color?

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

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

White. It scores 8.65:1 against #5f09cf, versus 2.43:1 for black — AAA at any size.

What is the complementary color of #5f09cf?

#79CF09 sits directly opposite on the wheel. Softer options are the split-complements #CFC209 and #16CF09, which give the same contrast with far less vibration.

What colors go well with #5f09cf?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6E4B9B for secondary text, #A3C705 as an accent and #38057A for hover and pressed states. For a palette, the analogous pair #0916CF and #C209CF stays calm, while #79CF09 is the loudest partner.

What is #5f09cf in CMYK for printing?

cmyk(54%, 96%, 0%, 19%). 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 #5f09cf warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A809CF; nudged cooler, #1507D1.

Work with #5f09cf in the Color Lab