Skip to content

#7342cf

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

RGB
115, 66, 207
HSL
261°, 60%, 54%
CMYK
44, 68, 0, 19
Luminance
0.1205

At a glance

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

Hex
#7342cf
Hue
261°
violet
Saturation
60%
vivid
Lightness
54%
balanced
Brightness
81%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1205
WCAG relative
Temperature
Cool
72/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
6.16:1
Closest name
Blue Violet
ΔE2000 4.9
Where it sits
Hue261° of 360°
Saturation60%
Lightness54%
Temperature
Warm ← → Cool72% 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#7342cf
RGBrgb(115, 66, 207)
HSLhsl(261, 60%, 54%)
CMYKcmyk(44%, 68%, 0%, 19%)
LABlab(41.3 51.8 -65.5)
LCHlch(41.3 83.5 308.4)
OKLCHoklch(0.517 0.205 294.0)
Decimal7553743
Display P3color(display-p3 0.451 0.259 0.812)

Copy-ready code

/* CSS */
color: #7342cf;
background-color: #7342cf;
/* Tailwind (arbitrary) */
class="text-[#7342cf] bg-[#7342cf]"
/* SCSS */
$brand: #7342cf;
/* SwiftUI */
Color(red: 0.451, green: 0.259, blue: 0.812)
/* Android */
Color.parseColor("#7342cf")
/* Flutter */
Color(0xFF7342CF)
/* Python / OpenCV (BGR) */
(207, 66, 115)

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

Accessibility — WCAG contrast

Aa
#7342cf on white: 6.16:1
AA ✓ pass · AA-large · AAA
Aa
#7342cf on black: 3.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063D3
deuteranopia · #005FCC
tritanopia · #596583

Color scale — 50 to 950

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

#F6F4FB
#EEE9F7
#D9CCEF
#BDA6E8
#9C79DD
#7342cf
#6432C3
#5429A3
#432182
#331C5F
#20113B
Base = 500Lightest = 50 · #F6F4FBDarkest = 950 · #20113B
:root {
  --brand-50: #F6F4FB;
  --brand-100: #EEE9F7;
  --brand-200: #D9CCEF;
  --brand-300: #BDA6E8;
  --brand-400: #9C79DD;
  --brand-500: #7342cf;
  --brand-600: #6432C3;
  --brand-700: #5429A3;
  --brand-800: #432182;
  --brand-900: #331C5F;
  --brand-950: #20113B;
  --brand: #7342cf;
  --brand-ink: #ffffff;
}

Colors that work with #7342cf

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#CFC0ED
Hairlines and dividers
Muted text#674B9B
Captions on the surface
Accent#9AA725
Second voice, not a rival
Dark variant#341A66
Hover, pressed, headers
Light variant#F0EBFA
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 #7342cf

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#9ECF42
Analogous left#4257CF
Analogous right#BA42CF
Split-complement 1#CFBA42
Split-complement 2#57CF42
Triadic 1#CF7342
Triadic 2#42CF73
Tetradic#CF4257

RGB percentages

Red45.1%
Green25.9%
Blue81.2%

CMYK percentages

Cyan44.4%
Magenta68.1%
Yellow0.0%
Key (black)18.8%

Color previews

#7342cf text on a black background

contrast 3.41:1

Card sample

#7342cf text on a white background

contrast 6.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7342cf;
Background color
Panel with #7342cf background
background-color: #7342cf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7342cf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(115, 66, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(115, 66, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7342cf;
background: linear-gradient(135deg, #7342cf, #CF42CD);

Monochromatic scale

Palettes built from #7342cf

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.

#7342cf 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.

#7342cf, answered

What color is #7342cf?

#7342cf is a balanced vivid violet, closest to Blue Violet (ΔE2000 4.9). It sits at 261° on the hue wheel with 60% saturation and 54% lightness, which reads as cool.

What is the RGB value of #7342cf?

rgb(115, 66, 207) — 115 red, 66 green and 207 blue out of 255, or 45.1% / 25.9% / 81.2% by channel.

Is #7342cf a light or a dark color?

It is a dark color. Relative luminance is 0.1205 and perceived brightness is 42%, so white text on it reaches 6.16:1.

Should I use black or white text on #7342cf?

White. It scores 6.16:1 against #7342cf, versus 3.41:1 for black — AA at any size.

What is the complementary color of #7342cf?

#9ECF42 sits directly opposite on the wheel. Softer options are the split-complements #CFBA42 and #57CF42, which give the same contrast with far less vibration.

What colors go well with #7342cf?

For interface work: #F6F4FA as the surface, #CFC0ED for borders, #674B9B for secondary text, #9AA725 as an accent and #341A66 for hover and pressed states. For a palette, the analogous pair #4257CF and #BA42CF stays calm, while #9ECF42 is the loudest partner.

What is #7342cf in CMYK for printing?

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

Is #7342cf warm or cool?

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

Work with #7342cf in the Color Lab