Skip to content

#5f2eef

a balanced, electric violet · cool · closest name: Blue Violet

RGB
95, 46, 239
HSL
255°, 86%, 56%
CMYK
60, 81, 0, 6
Luminance
0.1062

At a glance

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

Hex
#5f2eef
Hue
255°
violet
Saturation
86%
electric
Lightness
56%
balanced
Brightness
94%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1062
WCAG relative
Temperature
Cool
75/100 cool
Color family
Violet
Tone
Electric
Best ink
White
6.72:1
Closest name
Blue Violet
ΔE2000 6.1
Where it sits
Hue255° of 360°
Saturation86%
Lightness56%
Temperature
Warm ← → Cool75% 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#5f2eef
RGBrgb(95, 46, 239)
HSLhsl(255, 86%, 56%)
CMYKcmyk(60%, 81%, 0%, 6%)
LABlab(38.9 66.8 -87.7)
LCHlch(38.9 110.2 307.3)
OKLCHoklch(0.504 0.260 283.6)
Decimal6237935
Display P3color(display-p3 0.373 0.180 0.937)

Copy-ready code

/* CSS */
color: #5f2eef;
background-color: #5f2eef;
/* Tailwind (arbitrary) */
class="text-[#5f2eef] bg-[#5f2eef]"
/* SCSS */
$brand: #5f2eef;
/* SwiftUI */
Color(red: 0.373, green: 0.180, blue: 0.937)
/* Android */
Color.parseColor("#5f2eef")
/* Flutter */
Color(0xFF5F2EEF)
/* Python / OpenCV (BGR) */
(239, 46, 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 #5f2eef · 6.72:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.72:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.12:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5f2eef as text scores 6.72:1 on white and 3.12:1 on black.

Accessibility — WCAG contrast

Aa
#5f2eef on white: 6.72:1
AA ✓ pass · AA-large · AAA
Aa
#5f2eef on black: 3.12:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061F4
deuteranopia · #0055EC
tritanopia · #006A91

Color scale — 50 to 950

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

#F5F2FD
#EBE5FA
#D1C5F7
#AF97F7
#8763F3
#5f2eef
#4711E3
#3B0EBE
#2F0C98
#250D6E
#170844
Base = 500Lightest = 50 · #F5F2FDDarkest = 950 · #170844
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EBE5FA;
  --brand-200: #D1C5F7;
  --brand-300: #AF97F7;
  --brand-400: #8763F3;
  --brand-500: #5f2eef;
  --brand-600: #4711E3;
  --brand-700: #3B0EBE;
  --brand-800: #2F0C98;
  --brand-900: #250D6E;
  --brand-950: #170844;
  --brand: #5f2eef;
  --brand-ink: #ffffff;
}

Colors that work with #5f2eef

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#CBC0ED
Hairlines and dividers
Muted text#5F4B9B
Captions on the surface
Accent#C1C20A
Second voice, not a rival
Dark variant#250976
Hover, pressed, headers
Light variant#EDE7FD
Selected rows, tints
Dark surface#181424
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 #5f2eef

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
  • 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#BEEF2E
Analogous left#2E5EEF
Analogous right#BF2EEF
Split-complement 1#EFBF2E
Split-complement 2#5EEF2E
Triadic 1#EF5F2E
Triadic 2#2EEF5F
Tetradic#EF2E5E

RGB percentages

Red37.3%
Green18.0%
Blue93.7%

CMYK percentages

Cyan60.3%
Magenta80.8%
Yellow0.0%
Key (black)6.3%

Color previews

#5f2eef text on a black background

contrast 3.12:1

Card sample

#5f2eef text on a white background

contrast 6.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f2eef

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.

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

#5f2eef, answered

What color is #5f2eef?

#5f2eef is a balanced electric violet, closest to Blue Violet (ΔE2000 6.1). It sits at 255° on the hue wheel with 86% saturation and 56% lightness, which reads as cool.

What is the RGB value of #5f2eef?

rgb(95, 46, 239) — 95 red, 46 green and 239 blue out of 255, or 37.3% / 18% / 93.7% by channel.

Is #5f2eef a light or a dark color?

It is a dark color. Relative luminance is 0.1062 and perceived brightness is 40%, so white text on it reaches 6.72:1.

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

White. It scores 6.72:1 against #5f2eef, versus 3.12:1 for black — AA at any size.

What is the complementary color of #5f2eef?

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

What colors go well with #5f2eef?

For interface work: #F6F4FA as the surface, #CBC0ED for borders, #5F4B9B for secondary text, #C1C20A as an accent and #250976 for hover and pressed states. For a palette, the analogous pair #2E5EEF and #BF2EEF stays calm, while #BEEF2E is the loudest partner.

What is #5f2eef in CMYK for printing?

cmyk(60%, 81%, 0%, 6%). 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 #5f2eef warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A62EEF; nudged cooler, #2C42F1.

Work with #5f2eef in the Color Lab