Skip to content

#796fdf

a light, vivid blue · cool · closest name: Medium Slate Blue

RGB
121, 111, 223
HSL
245°, 64%, 66%
CMYK
46, 50, 0, 13
Luminance
0.2076

At a glance

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

Hex
#796fdf
Hue
245°
blue
Saturation
64%
vivid
Lightness
66%
light
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.2076
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.15:1
Closest name
Medium Slate Blue
ΔE2000 3
Where it sits
Hue245° of 360°
Saturation64%
Lightness66%
Temperature
Warm ← → Cool80% 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#796fdf
RGBrgb(121, 111, 223)
HSLhsl(245, 64%, 66%)
CMYKcmyk(46%, 50%, 0%, 13%)
LABlab(52.7 32.2 -56.1)
LCHlch(52.7 64.7 299.8)
OKLCHoklch(0.605 0.165 284.4)
Decimal7958495
Display P3color(display-p3 0.475 0.435 0.875)

Copy-ready code

/* CSS */
color: #796fdf;
background-color: #796fdf;
/* Tailwind (arbitrary) */
class="text-[#796fdf] bg-[#796fdf]"
/* SCSS */
$brand: #796fdf;
/* SwiftUI */
Color(red: 0.475, green: 0.435, blue: 0.875)
/* Android */
Color.parseColor("#796fdf")
/* Flutter */
Color(0xFF796FDF)
/* Python / OpenCV (BGR) */
(223, 111, 121)

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

Accessibility — WCAG contrast

Aa
#796fdf on white: 4.08:1
AA ✗ fail · AA-large · AAA
Aa
#796fdf on black: 5.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3C81E3
deuteranopia · #377ADD
tritanopia · #57879D

Color scale — 50 to 950

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

#F4F4FB
#E9E8F7
#CFCBF0
#AAA3EB
#796fdf
#5447D6
#3B2DC8
#3125A7
#271E85
#201961
#14103D
Base = 400Lightest = 50 · #F4F4FBDarkest = 950 · #14103D
:root {
  --brand-50: #F4F4FB;
  --brand-100: #E9E8F7;
  --brand-200: #CFCBF0;
  --brand-300: #AAA3EB;
  --brand-400: #796fdf;
  --brand-500: #5447D6;
  --brand-600: #3B2DC8;
  --brand-700: #3125A7;
  --brand-800: #271E85;
  --brand-900: #201961;
  --brand-950: #14103D;
  --brand: #796fdf;
  --brand-ink: #000000;
}

Colors that work with #796fdf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F5F4FA
Tinted page background
Border#C4C0ED
Hairlines and dividers
Muted text#524B9B
Captions on the surface
Accent#AA9422
Second voice, not a rival
Dark variant#1F1768
Hover, pressed, headers
Light variant#ECEAFA
Selected rows, tints
Dark surface#151424
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 #796fdf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White 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#D5DF6F
Analogous left#6F9DDF
Analogous right#B16FDF
Split-complement 1#DFB16F
Split-complement 2#9DDF6F
Triadic 1#DF796F
Triadic 2#6FDF79
Tetradic#DF6F9D

RGB percentages

Red47.5%
Green43.5%
Blue87.5%

CMYK percentages

Cyan45.7%
Magenta50.2%
Yellow0.0%
Key (black)12.5%

Color previews

#796fdf text on a black background

contrast 5.15:1

Card sample

#796fdf text on a white background

contrast 4.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #796fdf;
Background color
Panel with #796fdf background
background-color: #796fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #796fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 111, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 111, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #796fdf;
background: linear-gradient(135deg, #796fdf, #C46FDF);

Monochromatic scale

Palettes built from #796fdf

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.

#796fdf in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#796fdf, answered

What color is #796fdf?

#796fdf is a light vivid blue, closest to Medium Slate Blue (ΔE2000 3). It sits at 245° on the hue wheel with 64% saturation and 66% lightness, which reads as cool.

What is the RGB value of #796fdf?

rgb(121, 111, 223) — 121 red, 111 green and 223 blue out of 255, or 47.5% / 43.5% / 87.5% by channel.

Is #796fdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2076 and perceived brightness is 52%, so black text on it reaches 5.15:1.

Should I use black or white text on #796fdf?

Black. It scores 5.15:1 against #796fdf, versus 4.08:1 for white — AA at any size.

What is the complementary color of #796fdf?

#D5DF6F sits directly opposite on the wheel. Softer options are the split-complements #DFB16F and #9DDF6F, which give the same contrast with far less vibration.

What colors go well with #796fdf?

For interface work: #F5F4FA as the surface, #C4C0ED for borders, #524B9B for secondary text, #AA9422 as an accent and #1F1768 for hover and pressed states. For a palette, the analogous pair #6F9DDF and #B16FDF stays calm, while #D5DF6F is the loudest partner.

What is #796fdf in CMYK for printing?

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

Is #796fdf warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A26FDF; nudged cooler, #6D8DE1.

Work with #796fdf in the Color Lab