Skip to content

#4a0fdf

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

RGB
74, 15, 223
HSL
257°, 87%, 47%
CMYK
67, 93, 0, 13
Luminance
0.0713

At a glance

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

Hex
#4a0fdf
Hue
257°
violet
Saturation
87%
electric
Lightness
47%
balanced
Brightness
87%
HSV value
Perceived
34%
weighted brightness
Luminance
0.0713
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.66:1
Closest name
Blue
ΔE2000 3.8
Where it sits
Hue257° of 360°
Saturation87%
Lightness47%
Temperature
Warm ← → Cool74% 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#4a0fdf
RGBrgb(74, 15, 223)
HSLhsl(257, 87%, 47%)
CMYKcmyk(67%, 93%, 0%, 13%)
LABlab(32.1 70.6 -90.0)
LCHlch(32.1 114.3 308.1)
OKLCHoklch(0.448 0.263 279.9)
Decimal4853727
Display P3color(display-p3 0.290 0.059 0.875)

Copy-ready code

/* CSS */
color: #4a0fdf;
background-color: #4a0fdf;
/* Tailwind (arbitrary) */
class="text-[#4a0fdf] bg-[#4a0fdf]"
/* SCSS */
$brand: #4a0fdf;
/* SwiftUI */
Color(red: 0.290, green: 0.059, blue: 0.875)
/* Android */
Color.parseColor("#4a0fdf")
/* Flutter */
Color(0xFF4A0FDF)
/* Python / OpenCV (BGR) */
(223, 15, 74)

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 #4a0fdf · 8.66:1
Use #ffffffAAA at every size.
Aa
White text · 8.66: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: #4a0fdf as text scores 8.66:1 on white and 2.43:1 on black.

Accessibility — WCAG contrast

Aa
#4a0fdf on white: 8.66:1
AA ✓ pass · AA-large · AAA
Aa
#4a0fdf on black: 2.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0052E4
deuteranopia · #0044DC
tritanopia · #005C83

Color scale — 50 to 950

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

#F5F2FD
#EBE5FA
#D3C4F8
#B296F8
#8B61F4
#642DF1
#4a0fdf
#3F0DBF
#330A99
#280C6E
#190745
Base = 600Lightest = 50 · #F5F2FDDarkest = 950 · #190745
:root {
  --brand-50: #F5F2FD;
  --brand-100: #EBE5FA;
  --brand-200: #D3C4F8;
  --brand-300: #B296F8;
  --brand-400: #8B61F4;
  --brand-500: #642DF1;
  --brand-600: #4a0fdf;
  --brand-700: #3F0DBF;
  --brand-800: #330A99;
  --brand-900: #280C6E;
  --brand-950: #190745;
  --brand: #4a0fdf;
  --brand-ink: #ffffff;
}

Colors that work with #4a0fdf

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#CCC0ED
Hairlines and dividers
Muted text#614B9B
Captions on the surface
Accent#BEC309
Second voice, not a rival
Dark variant#280877
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 #4a0fdf

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#A4DF0F
Analogous left#0F3CDF
Analogous right#B20FDF
Split-complement 1#DFB20F
Split-complement 2#3CDF0F
Triadic 1#DF4A0F
Triadic 2#0FDF4A
Tetradic#DF0F3C

RGB percentages

Red29.0%
Green5.9%
Blue87.5%

CMYK percentages

Cyan66.8%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#4a0fdf text on a black background

contrast 2.43:1

Card sample

#4a0fdf text on a white background

contrast 8.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #4a0fdf;
Background color
Panel with #4a0fdf background
background-color: #4a0fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #4a0fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(74, 15, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(74, 15, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4a0fdf;
background: linear-gradient(135deg, #4a0fdf, #D50FDF);

Monochromatic scale

Palettes built from #4a0fdf

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.

#4a0fdf 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.

#4a0fdf, answered

What color is #4a0fdf?

#4a0fdf is a balanced electric violet, closest to Blue (ΔE2000 3.8). It sits at 257° on the hue wheel with 87% saturation and 47% lightness, which reads as cool.

What is the RGB value of #4a0fdf?

rgb(74, 15, 223) — 74 red, 15 green and 223 blue out of 255, or 29% / 5.9% / 87.5% by channel.

Is #4a0fdf 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.66:1.

Should I use black or white text on #4a0fdf?

White. It scores 8.66:1 against #4a0fdf, versus 2.43:1 for black — AAA at any size.

What is the complementary color of #4a0fdf?

#A4DF0F sits directly opposite on the wheel. Softer options are the split-complements #DFB20F and #3CDF0F, which give the same contrast with far less vibration.

What colors go well with #4a0fdf?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #614B9B for secondary text, #BEC309 as an accent and #280877 for hover and pressed states. For a palette, the analogous pair #0F3CDF and #B20FDF stays calm, while #A4DF0F is the loudest partner.

What is #4a0fdf in CMYK for printing?

cmyk(67%, 93%, 0%, 13%). 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 #4a0fdf warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #960FDF; nudged cooler, #0D1EE2.

Work with #4a0fdf in the Color Lab