Skip to content

#665af5

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

RGB
102, 90, 245
HSL
245°, 89%, 66%
CMYK
58, 63, 0, 4
Luminance
0.1673

At a glance

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

Hex
#665af5
Hue
245°
blue
Saturation
89%
electric
Lightness
66%
light
Brightness
96%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1673
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.83:1
Closest name
Medium Slate Blue
ΔE2000 5
Where it sits
Hue245° of 360°
Saturation89%
Lightness66%
Temperature
Warm ← → Cool81% 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#665af5
RGBrgb(102, 90, 245)
HSLhsl(245, 89%, 66%)
CMYKcmyk(58%, 63%, 0%, 4%)
LABlab(47.9 47.5 -76.3)
LCHlch(47.9 89.8 301.9)
OKLCHoklch(0.571 0.223 280.1)
Decimal6707957
Display P3color(display-p3 0.400 0.353 0.961)

Copy-ready code

/* CSS */
color: #665af5;
background-color: #665af5;
/* Tailwind (arbitrary) */
class="text-[#665af5] bg-[#665af5]"
/* SCSS */
$brand: #665af5;
/* SwiftUI */
Color(red: 0.400, green: 0.353, blue: 0.961)
/* Android */
Color.parseColor("#665af5")
/* Flutter */
Color(0xFF665AF5)
/* Python / OpenCV (BGR) */
(245, 90, 102)

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

Accessibility — WCAG contrast

Aa
#665af5 on white: 4.83:1
AA ✓ pass · AA-large · AAA
Aa
#665af5 on black: 4.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0078FA
deuteranopia · #006CF2
tritanopia · #00819F

Color scale — 50 to 950

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

#F3F2FD
#E7E5FB
#C8C4F8
#9D95F9
#665af5
#3B2BF2
#1F0EE7
#190CC0
#14099A
#130B6F
#0C0745
Base = 400Lightest = 50 · #F3F2FDDarkest = 950 · #0C0745
:root {
  --brand-50: #F3F2FD;
  --brand-100: #E7E5FB;
  --brand-200: #C8C4F8;
  --brand-300: #9D95F9;
  --brand-400: #665af5;
  --brand-500: #3B2BF2;
  --brand-600: #1F0EE7;
  --brand-700: #190CC0;
  --brand-800: #14099A;
  --brand-900: #130B6F;
  --brand-950: #0C0745;
  --brand: #665af5;
  --brand-ink: #ffffff;
}

Colors that work with #665af5

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#F5F4FA
Tinted page background
Border#C3C0ED
Hairlines and dividers
Muted text#514B9B
Captions on the surface
Accent#C5A307
Second voice, not a rival
Dark variant#100778
Hover, pressed, headers
Light variant#E9E7FE
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 #665af5

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • 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#E9F55A
Analogous left#5A9CF5
Analogous right#B35AF5
Split-complement 1#F5B35A
Split-complement 2#9CF55A
Triadic 1#F5665A
Triadic 2#5AF566
Tetradic#F55A9C

RGB percentages

Red40.0%
Green35.3%
Blue96.1%

CMYK percentages

Cyan58.4%
Magenta63.3%
Yellow0.0%
Key (black)3.9%

Color previews

#665af5 text on a black background

contrast 4.35:1

Card sample

#665af5 text on a white background

contrast 4.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #665af5;
Background color
Panel with #665af5 background
background-color: #665af5;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #665af5;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(102, 90, 245, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(102, 90, 245, 0.45);
Border & gradient
Gradient panel
border: 3px solid #665af5;
background: linear-gradient(135deg, #665af5, #CD5AF5);

Monochromatic scale

Palettes built from #665af5

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.

#665af5 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.

#665af5, answered

What color is #665af5?

#665af5 is a light electric blue, closest to Medium Slate Blue (ΔE2000 5). It sits at 245° on the hue wheel with 89% saturation and 66% lightness, which reads as cool.

What is the RGB value of #665af5?

rgb(102, 90, 245) — 102 red, 90 green and 245 blue out of 255, or 40% / 35.3% / 96.1% by channel.

Is #665af5 a light or a dark color?

It is a dark color. Relative luminance is 0.1673 and perceived brightness is 48%, so white text on it reaches 4.83:1.

Should I use black or white text on #665af5?

White. It scores 4.83:1 against #665af5, versus 4.35:1 for black — AA at any size.

What is the complementary color of #665af5?

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

What colors go well with #665af5?

For interface work: #F5F4FA as the surface, #C3C0ED for borders, #514B9B for secondary text, #C5A307 as an accent and #100778 for hover and pressed states. For a palette, the analogous pair #5A9CF5 and #B35AF5 stays calm, while #E9F55A is the loudest partner.

What is #665af5 in CMYK for printing?

cmyk(58%, 63%, 0%, 4%). 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 #665af5 warm or cool?

Cool — it scores 81 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9F5AF5; nudged cooler, #587EF7.

Work with #665af5 in the Color Lab