Skip to content

#795df9

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

RGB
121, 93, 249
HSL
251°, 93%, 67%
CMYK
51, 63, 0, 2
Luminance
0.1873

At a glance

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

Hex
#795df9
Hue
251°
blue
Saturation
93%
electric
Lightness
67%
light
Brightness
98%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1873
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
4.75:1
Closest name
Medium Slate Blue
ΔE2000 3.2
Where it sits
Hue251° of 360°
Saturation93%
Lightness67%
Temperature
Warm ← → Cool77% 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#795df9
RGBrgb(121, 93, 249)
HSLhsl(251, 93%, 67%)
CMYKcmyk(51%, 63%, 0%, 2%)
LABlab(50.4 50.1 -74.4)
LCHlch(50.4 89.7 303.9)
OKLCHoklch(0.593 0.222 285.7)
Decimal7953913
Display P3color(display-p3 0.475 0.365 0.976)

Copy-ready code

/* CSS */
color: #795df9;
background-color: #795df9;
/* Tailwind (arbitrary) */
class="text-[#795df9] bg-[#795df9]"
/* SCSS */
$brand: #795df9;
/* SwiftUI */
Color(red: 0.475, green: 0.365, blue: 0.976)
/* Android */
Color.parseColor("#795df9")
/* Flutter */
Color(0xFF795DF9)
/* Python / OpenCV (BGR) */
(249, 93, 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 #795df9 · 4.75:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.42:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.75:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #795df9 as text scores 4.42:1 on white and 4.75:1 on black.

Accessibility — WCAG contrast

Aa
#795df9 on white: 4.42:1
AA ✗ fail · AA-large · AAA
Aa
#795df9 on black: 4.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007CFE
deuteranopia · #0073F6
tritanopia · #4783A3

Color scale — 50 to 950

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

#F4F2FD
#E8E4FB
#CCC2F9
#A693FB
#795df9
#4C27F7
#3209EC
#2907C5
#21069D
#1C0972
#110647
Base = 400Lightest = 50 · #F4F2FDDarkest = 950 · #110647
:root {
  --brand-50: #F4F2FD;
  --brand-100: #E8E4FB;
  --brand-200: #CCC2F9;
  --brand-300: #A693FB;
  --brand-400: #795df9;
  --brand-500: #4C27F7;
  --brand-600: #3209EC;
  --brand-700: #2907C5;
  --brand-800: #21069D;
  --brand-900: #1C0972;
  --brand-950: #110647;
  --brand: #795df9;
  --brand-ink: #000000;
}

Colors that work with #795df9

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#C8C0ED
Hairlines and dividers
Muted text#594B9B
Captions on the surface
Accent#C8BB04
Second voice, not a rival
Dark variant#1A057B
Hover, pressed, headers
Light variant#EBE6FE
Selected rows, tints
Dark surface#171424
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 #795df9

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#DDF95D
Analogous left#5D8FF9
Analogous right#C75DF9
Split-complement 1#F9C75D
Split-complement 2#8FF95D
Triadic 1#F9795D
Triadic 2#5DF979
Tetradic#F95D8F

RGB percentages

Red47.5%
Green36.5%
Blue97.6%

CMYK percentages

Cyan51.4%
Magenta62.7%
Yellow0.0%
Key (black)2.4%

Color previews

#795df9 text on a black background

contrast 4.75:1

Card sample

#795df9 text on a white background

contrast 4.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #795df9;
Background color
Panel with #795df9 background
background-color: #795df9;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #795df9;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 93, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 93, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #795df9;
background: linear-gradient(135deg, #795df9, #E15DF9);

Monochromatic scale

Palettes built from #795df9

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.

#795df9 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#795df9, answered

What color is #795df9?

#795df9 is a light electric blue, closest to Medium Slate Blue (ΔE2000 3.2). It sits at 251° on the hue wheel with 93% saturation and 67% lightness, which reads as cool.

What is the RGB value of #795df9?

rgb(121, 93, 249) — 121 red, 93 green and 249 blue out of 255, or 47.5% / 36.5% / 97.6% by channel.

Is #795df9 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1873 and perceived brightness is 50%, so black text on it reaches 4.75:1.

Should I use black or white text on #795df9?

Black. It scores 4.75:1 against #795df9, versus 4.42:1 for white — AA at any size.

What is the complementary color of #795df9?

#DDF95D sits directly opposite on the wheel. Softer options are the split-complements #F9C75D and #8FF95D, which give the same contrast with far less vibration.

What colors go well with #795df9?

For interface work: #F5F4FA as the surface, #C8C0ED for borders, #594B9B for secondary text, #C8BB04 as an accent and #1A057B for hover and pressed states. For a palette, the analogous pair #5D8FF9 and #C75DF9 stays calm, while #DDF95D is the loudest partner.

What is #795df9 in CMYK for printing?

cmyk(51%, 63%, 0%, 2%). 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 #795df9 warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B25DF9; nudged cooler, #5B79FB.

Work with #795df9 in the Color Lab