Skip to content

#7f7ad2

a light, vivid blue · cool · closest name: Medium Purple

RGB
127, 122, 210
HSL
243°, 49%, 65%
CMYK
40, 42, 0, 18
Luminance
0.2308

At a glance

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

Hex
#7f7ad2
Hue
243°
blue
Saturation
49%
vivid
Lightness
65%
light
Brightness
82%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2308
WCAG relative
Temperature
Cool
81/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.62:1
Closest name
Medium Purple
ΔE2000 5.9
Where it sits
Hue243° of 360°
Saturation49%
Lightness65%
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#7f7ad2
RGBrgb(127, 122, 210)
HSLhsl(243, 49%, 65%)
CMYKcmyk(40%, 42%, 0%, 18%)
LABlab(55.2 23.4 -44.8)
LCHlch(55.2 50.5 297.5)
OKLCHoklch(0.623 0.131 284.5)
Decimal8354514
Display P3color(display-p3 0.498 0.478 0.824)

Copy-ready code

/* CSS */
color: #7f7ad2;
background-color: #7f7ad2;
/* Tailwind (arbitrary) */
class="text-[#7f7ad2] bg-[#7f7ad2]"
/* SCSS */
$brand: #7f7ad2;
/* SwiftUI */
Color(red: 0.498, green: 0.478, blue: 0.824)
/* Android */
Color.parseColor("#7f7ad2")
/* Flutter */
Color(0xFF7F7AD2)
/* Python / OpenCV (BGR) */
(210, 122, 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#000000 on #7f7ad2 · 5.62:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.74:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.62:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #7f7ad2 as text scores 3.74:1 on white and 5.62:1 on black.

Accessibility — WCAG contrast

Aa
#7f7ad2 on white: 3.74:1
AA ✗ fail · AA-large · AAA
Aa
#7f7ad2 on black: 5.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5B87D5
deuteranopia · #5881D0
tritanopia · #678B9C

Color scale — 50 to 950

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

#F5F4FA
#EAEAF6
#D1CFEC
#AEABE3
#7f7ad2
#5E57C6
#453EB7
#393498
#2E297A
#252159
#171538
Base = 400Lightest = 50 · #F5F4FADarkest = 950 · #171538
:root {
  --brand-50: #F5F4FA;
  --brand-100: #EAEAF6;
  --brand-200: #D1CFEC;
  --brand-300: #AEABE3;
  --brand-400: #7f7ad2;
  --brand-500: #5E57C6;
  --brand-600: #453EB7;
  --brand-700: #393498;
  --brand-800: #2E297A;
  --brand-900: #252159;
  --brand-950: #171538;
  --brand: #7f7ad2;
  --brand-ink: #000000;
}

Colors that work with #7f7ad2

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#C4C2EA
Hairlines and dividers
Muted text#4F4B9B
Captions on the surface
Accent#9D872F
Second voice, not a rival
Dark variant#24205F
Hover, pressed, headers
Light variant#EDECF9
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 #7f7ad2

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#CDD27A
Analogous left#7AA1D2
Analogous right#AB7AD2
Split-complement 1#D2AB7A
Split-complement 2#A1D27A
Triadic 1#D27F7A
Triadic 2#7AD27F
Tetradic#D27AA1

RGB percentages

Red49.8%
Green47.8%
Blue82.4%

CMYK percentages

Cyan39.5%
Magenta41.9%
Yellow0.0%
Key (black)17.6%

Color previews

#7f7ad2 text on a black background

contrast 5.62:1

Card sample

#7f7ad2 text on a white background

contrast 3.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7f7ad2

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.

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

#7f7ad2, answered

What color is #7f7ad2?

#7f7ad2 is a light vivid blue, closest to Medium Purple (ΔE2000 5.9). It sits at 243° on the hue wheel with 49% saturation and 65% lightness, which reads as cool.

What is the RGB value of #7f7ad2?

rgb(127, 122, 210) — 127 red, 122 green and 210 blue out of 255, or 49.8% / 47.8% / 82.4% by channel.

Is #7f7ad2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2308 and perceived brightness is 53%, so black text on it reaches 5.62:1.

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

Black. It scores 5.62:1 against #7f7ad2, versus 3.74:1 for white — AA at any size.

What is the complementary color of #7f7ad2?

#CDD27A sits directly opposite on the wheel. Softer options are the split-complements #D2AB7A and #A1D27A, which give the same contrast with far less vibration.

What colors go well with #7f7ad2?

For interface work: #F5F4FA as the surface, #C4C2EA for borders, #4F4B9B for secondary text, #9D872F as an accent and #24205F for hover and pressed states. For a palette, the analogous pair #7AA1D2 and #AB7AD2 stays calm, while #CDD27A is the loudest partner.

What is #7f7ad2 in CMYK for printing?

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

Is #7f7ad2 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 #9F7AD2; nudged cooler, #7895D4.

Work with #7f7ad2 in the Color Lab