Skip to content

#7f3eb6

a balanced, vivid violet · cool · closest name: Dark Orchid

RGB
127, 62, 182
HSL
273°, 49%, 48%
CMYK
30, 66, 0, 29
Luminance
0.1133

At a glance

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

Hex
#7f3eb6
Hue
273°
violet
Saturation
49%
vivid
Lightness
48%
balanced
Brightness
71%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1133
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.43:1
Closest name
Dark Orchid
ΔE2000 5.1
Where it sits
Hue273° of 360°
Saturation49%
Lightness48%
Temperature
Warm ← → Cool65% 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#7f3eb6
RGBrgb(127, 62, 182)
HSLhsl(273, 49%, 48%)
CMYKcmyk(30%, 66%, 0%, 29%)
LABlab(40.1 50.0 -52.7)
LCHlch(40.1 72.6 313.5)
OKLCHoklch(0.506 0.184 305.7)
Decimal8339126
Display P3color(display-p3 0.498 0.243 0.714)

Copy-ready code

/* CSS */
color: #7f3eb6;
background-color: #7f3eb6;
/* Tailwind (arbitrary) */
class="text-[#7f3eb6] bg-[#7f3eb6]"
/* SCSS */
$brand: #7f3eb6;
/* SwiftUI */
Color(red: 0.498, green: 0.243, blue: 0.714)
/* Android */
Color.parseColor("#7f3eb6")
/* Flutter */
Color(0xFF7F3EB6)
/* Python / OpenCV (BGR) */
(182, 62, 127)

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 #7f3eb6 · 6.43:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.43:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.27:1
AA fail · AA large pass · AAA fail
Reading the other direction: #7f3eb6 as text scores 6.43:1 on white and 3.27:1 on black.

Accessibility — WCAG contrast

Aa
#7f3eb6 on white: 6.43:1
AA ✓ pass · AA-large · AAA
Aa
#7f3eb6 on black: 3.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DBA
deuteranopia · #1E5FB3
tritanopia · #755875

Color scale — 50 to 950

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

#F8F4FA
#F0EAF6
#DFCFEC
#C9ABE3
#AE81D4
#9358C6
#7f3eb6
#6A3498
#55297A
#402159
#281538
Base = 600Lightest = 50 · #F8F4FADarkest = 950 · #281538
:root {
  --brand-50: #F8F4FA;
  --brand-100: #F0EAF6;
  --brand-200: #DFCFEC;
  --brand-300: #C9ABE3;
  --brand-400: #AE81D4;
  --brand-500: #9358C6;
  --brand-600: #7f3eb6;
  --brand-700: #6A3498;
  --brand-800: #55297A;
  --brand-900: #402159;
  --brand-950: #281538;
  --brand: #7f3eb6;
  --brand-ink: #ffffff;
}

Colors that work with #7f3eb6

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#F8F4FA
Tinted page background
Border#D8C2EA
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#7D9C30
Second voice, not a rival
Dark variant#42205F
Hover, pressed, headers
Light variant#F3ECF9
Selected rows, tints
Dark surface#1D1424
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 #7f3eb6

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#75B63E
Analogous left#433EB6
Analogous right#B63EB1
Split-complement 1#B1B63E
Split-complement 2#3EB643
Triadic 1#B67F3E
Triadic 2#3EB67F
Tetradic#B6433E

RGB percentages

Red49.8%
Green24.3%
Blue71.4%

CMYK percentages

Cyan30.2%
Magenta65.9%
Yellow0.0%
Key (black)28.6%

Color previews

#7f3eb6 text on a black background

contrast 3.27:1

Card sample

#7f3eb6 text on a white background

contrast 6.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7f3eb6;
Background color
Panel with #7f3eb6 background
background-color: #7f3eb6;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7f3eb6;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(127, 62, 182, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 62, 182, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f3eb6;
background: linear-gradient(135deg, #7f3eb6, #B63E9D);

Monochromatic scale

Palettes built from #7f3eb6

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.

#7f3eb6 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.

#7f3eb6, answered

What color is #7f3eb6?

#7f3eb6 is a balanced vivid violet, closest to Dark Orchid (ΔE2000 5.1). It sits at 273° on the hue wheel with 49% saturation and 48% lightness, which reads as cool.

What is the RGB value of #7f3eb6?

rgb(127, 62, 182) — 127 red, 62 green and 182 blue out of 255, or 49.8% / 24.3% / 71.4% by channel.

Is #7f3eb6 a light or a dark color?

It is a dark color. Relative luminance is 0.1133 and perceived brightness is 41%, so white text on it reaches 6.43:1.

Should I use black or white text on #7f3eb6?

White. It scores 6.43:1 against #7f3eb6, versus 3.27:1 for black — AA at any size.

What is the complementary color of #7f3eb6?

#75B63E sits directly opposite on the wheel. Softer options are the split-complements #B1B63E and #3EB643, which give the same contrast with far less vibration.

What colors go well with #7f3eb6?

For interface work: #F8F4FA as the surface, #D8C2EA for borders, #764B9B for secondary text, #7D9C30 as an accent and #42205F for hover and pressed states. For a palette, the analogous pair #433EB6 and #B63EB1 stays calm, while #75B63E is the loudest partner.

What is #7f3eb6 in CMYK for printing?

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

Is #7f3eb6 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB3EB6; nudged cooler, #513BB8.

Work with #7f3eb6 in the Color Lab